Skip to content

Commit

Permalink
In nginx, $https cannot be redefined. Changed to use $my_https instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphoting committed Feb 18, 2013
1 parent 4926eae commit 0f830e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ http {
port_in_redirect off;

# set $https only when SSL is actually used.
map $http_x_forwarded_proto $https {
map $http_x_forwarded_proto $my_https {
default off;
https on;
}
Expand Down Expand Up @@ -67,7 +67,7 @@ http {
# Status. /status.html uses /status
location ~ ^/(status|ping)$ {
include /app/vendor/nginx/conf/fastcgi_params;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param HTTPS $my_https if_not_empty;
fastcgi_pass php_fpm;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Expand Down Expand Up @@ -103,7 +103,7 @@ http {
try_files $uri =404;
limit_conn phplimit 5; # limit to 5 concurrent users to PHP per IP.
include /app/vendor/nginx/conf/fastcgi_params;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param HTTPS $my_https if_not_empty;
fastcgi_pass php_fpm;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Expand Down

0 comments on commit 0f830e0

Please sign in to comment.