File tree 5 files changed +12
-15
lines changed
5 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ fastcgi_param SCRIPT_FILENAME $document_root/index.php;
27
27
## later. The if_not_empty flag was introduced in 1.1.11. See:
28
28
## http://nginx.org/en/CHANGES. If using a version that doesn't
29
29
## support this comment out the line below.
30
- fastcgi_param HTTPS $https if_not_empty;
30
+ fastcgi_param HTTPS $fastcgi_https if_not_empty;
31
31
## For Nginx versions below 1.1.11 uncomment the line below after commenting out the above.
32
- #fastcgi_param HTTPS $https ;
32
+ #fastcgi_param HTTPS $fastcgi_https ;
33
33
34
34
## 2. Nginx FCGI specific directives.
35
35
fastcgi_buffers 256 4k ;
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ fastcgi_param SCRIPT_FILENAME $document_root/index.php;
27
27
## later. The if_not_empty flag was introduced in 1.1.11. See:
28
28
## http://nginx.org/en/CHANGES. If using a version that doesn't
29
29
## support this comment out the line below.
30
- fastcgi_param HTTPS $https if_not_empty;
30
+ fastcgi_param HTTPS $fastcgi_https if_not_empty;
31
31
## For Nginx versions below 1.1.11 uncomment the line below after commenting out the above.
32
- #fastcgi_param HTTPS $https ;
32
+ #fastcgi_param HTTPS $fastcgi_https ;
33
33
34
34
## 2. Nginx FCGI specific directives.
35
35
fastcgi_buffers 256 4k ;
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ fastcgi_param REDIRECT_STATUS 200;
27
27
## later. The if_not_empty flag was introduced in 1.1.11. See:
28
28
## http://nginx.org/en/CHANGES. If using a version that doesn't
29
29
## support this comment out the line below.
30
- fastcgi_param HTTPS $https if_not_empty;
30
+ fastcgi_param HTTPS $fastcgi_https if_not_empty;
31
31
## For Nginx versions below 1.1.11 uncomment the line below after commenting out the above.
32
- #fastcgi_param HTTPS $https ;
32
+ #fastcgi_param HTTPS $fastcgi_https ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -186,11 +186,12 @@ http {
186
186
## previous version then uncomment out the line below.
187
187
#include map_https_fcgi.conf;
188
188
189
- ## Include this line, if used in a loadbalanced environment
190
- ## and comment the line which includes map_https_fcgi.conf.
191
- ## If the loadbalancer always sends the request in http protocol,
192
- ## and adds the server variable $http_x_forwarded_proto
193
- #include map_https_forwarded_proto.conf;
189
+ # Support the X-Forwarded-Proto header for fastcgi.
190
+ map $http_x_forwarded_proto $fastcgi_https {
191
+ default $https ;
192
+ http '' ;
193
+ https on ;
194
+ }
194
195
195
196
## Include the upstream servers for Apache handling the PHP
196
197
## processes. In this case Nginx functions as a reverse proxy.
You can’t perform that action at this time.
0 commit comments