Hands-on task
The wrong site is served
The server has two virtual hosts: the application app.local (/var/www/app) and a legacy placeholder legacy.local (/var/www/legacy). A request to http://localhost/ returns the legacy page instead of the application. Make the application respond to requests with any unknown host name, while the legacy site still opens under its own name.
- nginx
- default_server
- server_name
- nginx -T
- virtual hosts