Created
February 1, 2017 22:01
-
-
Save imerr/0bdbda185cca1f2313a82c6245ed82d6 to your computer and use it in GitHub Desktop.
NGINX Fastcgi HTTPS passing for http_x_forwarded_proto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_x_forwarded_proto $fcgi_https { | |
default off; | |
https on; | |
} | |
server { | |
// ... | |
location ~ \.php$ { | |
// ... | |
fastcgi_param HTTPS $fcgi_https; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment