Skip to content

Make nginx config robust against broken redirect configuration

Jan Klass requested to merge Kissaki/review-apps-nginx:patch-1 into master

If server_name_in_redirect is on, the try_files $uri/ rule will lead to a broken 301 permanent redirect (server_name regexp string as domain).

Specifying server_name_in_redirect off in the server block ensures that it works even when server_name_in_redirect is on within http (the parent configuration context).

Merge request reports