Commit 7e77e0d5 authored by ale's avatar ale
Browse files

Fix Location headers for backends that do not understand X-Forwarded-Proto

Some backends can't understand that the reverse proxy is terminating
SSL, and will generate redirects with a http:// Location URL.
The proxy_redirect directive should take care of that.
parent 345671c6
Pipeline #16782 passed with stage
in 5 minutes and 46 seconds
......@@ -41,6 +41,9 @@ 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