Make nginx config robust against broken redirect configuration
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).