Closed whitlockjc closed 8 years ago
Whenever nginx matches a server, if there is no / location for that server any requests to / will render the nginx welcome page. We want to avoid this by injecting a / that returns a 404 for all servers that do not already have a / location.
/
404
Here is a good read on how nginx chooses servers and locations based on the request and nginx.conf: https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms
Whenever nginx matches a server, if there is no
/
location for that server any requests to/
will render the nginx welcome page. We want to avoid this by injecting a/
that returns a404
for all servers that do not already have a/
location.Here is a good read on how nginx chooses servers and locations based on the request and nginx.conf: https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms