Skip to content

Instantly share code, notes, and snippets.

@imerr
Created February 1, 2017 22:01
Show Gist options
  • Save imerr/0bdbda185cca1f2313a82c6245ed82d6 to your computer and use it in GitHub Desktop.
Save imerr/0bdbda185cca1f2313a82c6245ed82d6 to your computer and use it in GitHub Desktop.
NGINX Fastcgi HTTPS passing for http_x_forwarded_proto
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