-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default_server option for the default server #85
Comments
I'm currently being stung by this quite badly.
instead of:
This means if my server gets a request for some random host it will respond with a valid 301 https redirect for that host.
Even without an ingress record for |
@markacola this is already fix in this repo. Please check https://github.com/kubernetes/ingress/blob/master/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl#L255 |
@aledbf Sorry, i dont think I was very clear with my previous comment.
With the above config a request with host |
As per kubernetes-retired/contrib#2213
If you're using wildcard host names the default backend will no longer be available due to the way nginx has predence on wildcards. By providing default_server it indicates a catch-all so regardless of wildcards if there is no direct match they will end up in default server block.
The text was updated successfully, but these errors were encountered: