Commit 164fd3b0 authored by ale's avatar ale
Browse files

Move the proxy_redirect directive inside the 'location' sections

parent 7e77e0d5
Pipeline #16783 passed with stage
in 6 minutes and 26 seconds
......@@ -10,3 +10,7 @@ proxy_set_header Connection "";
# We set our own HSTS headers on all endpoints, ignore what is
# set by the application.
proxy_hide_header Strict-Transport-Security;
# Fix Location header for backends that do not understand the
# X-Forwarded-Proto header.
proxy_redirect http://$http_host/ https://$http_host/;
......@@ -41,9 +41,6 @@ server {
include /etc/nginx/snippets/site-common.conf;
{# Handle backends that do not understand X-Forwarded-Proto, like Apache #}
proxy_redirect http://$http_host/ https://$http_host/;
{#
When multiple locations are defined, we must make sure
that / comes last.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment