Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Fixed the wrong $https variable in fastcgi_params.

  • Loading branch information...
commit cae24c47ca58467eb03411aa0da42f69b80fe7e6 1 parent d5ad24d
@perusio perusio authored
View
9 fastcgi_params
@@ -23,5 +23,10 @@ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
## PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
-## HTTPS 'on' parameter.
-fastcgi_param HTTPS $https_if_not_empty;
+## HTTPS 'on' parameter. This requires Nginx version 1.1.11 or
+## later. The if_not_empty flag was introduced in 1.1.11. See:
+## http://nginx.org/en/CHANGES. If using a version that doesn't
+## support this comment out the line below.
+fastcgi_param HTTPS $https if_not_empty;
+## For Nginx versions below 1.1.11 uncomment the line below after commenting out the above.
+#fastcgi_param HTTPS $https
View
2  map_https_fcgi.conf
@@ -1,7 +1,7 @@
# -*- mode: conf; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
### Implement the $https_if_not_empty variable for Nginx versions below 1.1.11.
-map $scheme $https_if_not_empty {
+map $scheme $https {
default '';
https on;
}
View
4 sites-available/example.com.conf
@@ -98,8 +98,8 @@ server {
limit_conn arbeit 10;
## Access and error logs.
- access_log /var/log/nginx/example.com_access.log;
- error_log /var/log/nginx/example.com_error.log;
+ access_log /var/log/nginx/example.com_access.log;
+ error_log /var/log/nginx/example.com_error.log;
## Keep alive timeout set to a greater value for SSL/TLS.
keepalive_timeout 75 75;
Please sign in to comment.
Something went wrong with that request. Please try again.