From d59f245e3bd439aea9b6ba45bb3564fb32be0ff4 Mon Sep 17 00:00:00 2001 From: Raul Pedro Santos Date: Sun, 8 Jan 2012 18:07:34 +0000 Subject: [PATCH 1/2] Add HTTPS parameter to fastcgi_params. --- fastcgi_params | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastcgi_params b/fastcgi_params index 90985e47..5b99397b 100644 --- a/fastcgi_params +++ b/fastcgi_params @@ -21,5 +21,7 @@ fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; +fastcgi_param HTTPS $server_https; + ## PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; From f5b1aefc3748ef262fcfa4fc8eada60687b0636a Mon Sep 17 00:00:00 2001 From: Raul Pedro Santos Date: Sun, 8 Jan 2012 18:11:14 +0000 Subject: [PATCH 2/2] Add SCRIPT_FILENAME to fastcgi_params. --- fastcgi_params | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fastcgi_params b/fastcgi_params index 5b99397b..d74b385e 100644 --- a/fastcgi_params +++ b/fastcgi_params @@ -5,6 +5,7 @@ fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; +fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; @@ -21,7 +22,7 @@ fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; -fastcgi_param HTTPS $server_https; +fastcgi_param HTTPS $server_https; ## PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200;