File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -23,5 +23,10 @@ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
23
23
24
24
## PHP only, required if PHP was built with --enable-force-cgi-redirect
25
25
fastcgi_param REDIRECT_STATUS 200;
26
- ## HTTPS 'on' parameter.
27
- fastcgi_param HTTPS $https_if_not_empty;
26
+ ## HTTPS 'on' parameter. This requires Nginx version 1.1.11 or
27
+ ## later. The if_not_empty flag was introduced in 1.1.11. See:
28
+ ## http://nginx.org/en/CHANGES. If using a version that doesn't
29
+ ## support this comment out the line below.
30
+ fastcgi_param HTTPS $https if_not_empty;
31
+ ## For Nginx versions below 1.1.11 uncomment the line below after commenting out the above.
32
+ #fastcgi_param HTTPS $https
Original file line number Diff line number Diff line change 1
1
# -*- mode: conf; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
2
2
### Implement the $https_if_not_empty variable for Nginx versions below 1.1.11.
3
3
4
- map $scheme $https_if_not_empty {
4
+ map $scheme $https {
5
5
default '';
6
6
https on;
7
7
}
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ server {
98
98
limit_conn arbeit 10 ;
99
99
100
100
## Access and error logs.
101
- access_log /var/log/nginx/example.com_access.log;
102
- error_log /var/log/nginx/example.com_error.log;
101
+ access_log /var/log/nginx/example.com_access.log;
102
+ error_log /var/log/nginx/example.com_error.log;
103
103
104
104
## Keep alive timeout set to a greater value for SSL/TLS.
105
105
keepalive_timeout 75 75 ;
You can’t perform that action at this time.
0 commit comments