[nginx] Added the REQUEST_SCHEME parameter.

Maxim Dounin mdounin at mdounin.ru
Fri Jun 5 19:29:20 UTC 2015


details:   http://hg.nginx.org/nginx/rev/62869a9b2e7d
branches:  
changeset: 6168:62869a9b2e7d
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Jun 05 22:23:26 2015 +0300
description:
Added the REQUEST_SCHEME parameter.

The REQUEST_SCHEME parameter was introduced in Apache 2.3.11 and seems
to be used by some scripts now.  It looks more logical than previously
used HTTPS.

diffstat:

 conf/fastcgi.conf   |  1 +
 conf/fastcgi_params |  1 +
 conf/scgi_params    |  1 +
 conf/uwsgi_params   |  1 +
 4 files changed, 4 insertions(+), 0 deletions(-)

diffs (44 lines):

diff --git a/conf/fastcgi.conf b/conf/fastcgi.conf
--- a/conf/fastcgi.conf
+++ b/conf/fastcgi.conf
@@ -10,6 +10,7 @@ fastcgi_param  REQUEST_URI        $reque
 fastcgi_param  DOCUMENT_URI       $document_uri;
 fastcgi_param  DOCUMENT_ROOT      $document_root;
 fastcgi_param  SERVER_PROTOCOL    $server_protocol;
+fastcgi_param  REQUEST_SCHEME     $scheme;
 fastcgi_param  HTTPS              $https if_not_empty;
 
 fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
diff --git a/conf/fastcgi_params b/conf/fastcgi_params
--- a/conf/fastcgi_params
+++ b/conf/fastcgi_params
@@ -9,6 +9,7 @@ fastcgi_param  REQUEST_URI        $reque
 fastcgi_param  DOCUMENT_URI       $document_uri;
 fastcgi_param  DOCUMENT_ROOT      $document_root;
 fastcgi_param  SERVER_PROTOCOL    $server_protocol;
+fastcgi_param  REQUEST_SCHEME     $scheme;
 fastcgi_param  HTTPS              $https if_not_empty;
 
 fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
diff --git a/conf/scgi_params b/conf/scgi_params
--- a/conf/scgi_params
+++ b/conf/scgi_params
@@ -8,6 +8,7 @@ scgi_param  DOCUMENT_URI       $document
 scgi_param  DOCUMENT_ROOT      $document_root;
 scgi_param  SCGI               1;
 scgi_param  SERVER_PROTOCOL    $server_protocol;
+scgi_param  REQUEST_SCHEME     $scheme;
 scgi_param  HTTPS              $https if_not_empty;
 
 scgi_param  REMOTE_ADDR        $remote_addr;
diff --git a/conf/uwsgi_params b/conf/uwsgi_params
--- a/conf/uwsgi_params
+++ b/conf/uwsgi_params
@@ -8,6 +8,7 @@ uwsgi_param  REQUEST_URI        $request
 uwsgi_param  PATH_INFO          $document_uri;
 uwsgi_param  DOCUMENT_ROOT      $document_root;
 uwsgi_param  SERVER_PROTOCOL    $server_protocol;
+uwsgi_param  REQUEST_SCHEME     $scheme;
 uwsgi_param  HTTPS              $https if_not_empty;
 
 uwsgi_param  REMOTE_ADDR        $remote_addr;



More information about the nginx-devel mailing list