File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -190,11 +190,12 @@ http {
190190 ## previous version then uncomment out the line below.
191191 #include map_https_fcgi.conf;
192192
193- ## Include this line, if used in a loadbalanced environment
194- ## and comment the line which includes map_https_fcgi.conf.
195- ## If the loadbalancer always sends the request in http protocol,
196- ## and adds the server variable $http_x_forwarded_proto
197- #include map_https_forwarded_proto.conf;
193+ ## Support the X-Forwarded-Proto header for FastCGI.
194+ map $http_x_forwarded_proto $fastcgi_https {
195+ default $https ;
196+ http '' ;
197+ https on;
198+ }
198199
199200 ## Include the upstream servers for Apache handling the PHP
200201 ## processes. In this case Nginx functions as a reverse proxy.
You can’t perform that action at this time.
0 commit comments