30x / k8s-router

A general purpose router for Kubernetes.
Apache License 2.0
15 stars 2 forks source link

Do not serve nginx welcome page #35

Closed whitlockjc closed 8 years ago

whitlockjc commented 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.

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