This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
CentOS-WebPanel Bugs / (nginx > apache) or (nginx > varnish > apache) Proxy SSL Issue
« on: December 01, 2017, 08:04:13 AM »
For anyone having an issue with proxy setup here is a solution for instance where apache isn't detecting that nginx received the request over ssl. It's happening because nginx isn't forwarding the protocol header so apache always things that the request is coming over http.
This affects both (nginx > apache) or (nginx > varnish > apache)
Add following line to /etc/nginx/proxy.inc
proxy_set_header X-Forwarded-Proto $scheme;
This affects both (nginx > apache) or (nginx > varnish > apache)
Add following line to /etc/nginx/proxy.inc
proxy_set_header X-Forwarded-Proto $scheme;
Pages: [1]