My configuration is: Internet -> Nginx as SSL-Offloader -> Varnish -> Nginx + PHP
When I send a redirect from PHP to https://foo.bar I see http://foo.bar. It looks like Varnish rewrites Location header in response. How can I fix it?
It's Ok in configuration without Varnish: Internet -> Nginx as SSL-Offloader -> Nginx + PHP