From fd87f1b7906120b81dba06558d73ed492f2a230f Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Fri, 9 Dec 2011 15:38:26 +0000 Subject: [PATCH] Added HTTPS param with Apache-like behaviour to fastcgi/scgi/uwsgi_params (fixes #38). --- conf/fastcgi_params | 1 + conf/scgi_params | 1 + conf/uwsgi_params | 1 + 3 files changed, 3 insertions(+) diff --git a/conf/fastcgi_params b/conf/fastcgi_params index 201c686e2..71e2c2e3b 100644 --- a/conf/fastcgi_params +++ b/conf/fastcgi_params @@ -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; diff --git a/conf/scgi_params b/conf/scgi_params index 257167eb7..47348ca38 100644 --- a/conf/scgi_params +++ b/conf/scgi_params @@ -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; diff --git a/conf/uwsgi_params b/conf/uwsgi_params index b57e8e78e..f539451b6 100644 --- a/conf/uwsgi_params +++ b/conf/uwsgi_params @@ -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;