Skip to content

Commit

Permalink
Added HTTPS param with Apache-like behaviour to fastcgi/scgi/uwsgi_pa…
Browse files Browse the repository at this point in the history
…rams (fixes nginx#38).
  • Loading branch information
VBart committed Dec 9, 2011
1 parent 247332a commit fd87f1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/fastcgi_params
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param HTTPS $https if_not_empty;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
Expand Down
1 change: 1 addition & 0 deletions conf/scgi_params
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ scgi_param DOCUMENT_URI $document_uri;
scgi_param DOCUMENT_ROOT $document_root;
scgi_param SCGI 1;
scgi_param SERVER_PROTOCOL $server_protocol;
scgi_param HTTPS $https if_not_empty;

scgi_param REMOTE_ADDR $remote_addr;
scgi_param REMOTE_PORT $remote_port;
Expand Down
1 change: 1 addition & 0 deletions conf/uwsgi_params
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ uwsgi_param REQUEST_URI $request_uri;
uwsgi_param PATH_INFO $document_uri;
uwsgi_param DOCUMENT_ROOT $document_root;
uwsgi_param SERVER_PROTOCOL $server_protocol;
uwsgi_param HTTPS $https if_not_empty;

uwsgi_param REMOTE_ADDR $remote_addr;
uwsgi_param REMOTE_PORT $remote_port;
Expand Down

0 comments on commit fd87f1b

Please sign in to comment.