A host header identifies the domain requested by an HTTP client. A reverse proxy such as Nginx uses it to choose the site configuration when multiple applications share one port. section 20.1
A local routing workflow uses the host header like this:
- Send the request to Nginx; its matching server configuration proxies the request to the application container. section 20.1
Routing whoami.local
After adding whoami.local to the hosts file, starting the who-am-I container, and reloading Nginx, curl http://whoami.local reaches the application through the proxy.
