## Designed to be included to /etc/nginx/nginx.conf http{} block. # auto detect and enable fastcgi_param HTTPS $server_http for PHP behind SSL https. map $scheme $server_https { default off; https on; } map $http_x_forwarded_proto $proto_https { default $scheme; https https; }