From f3b5cd18eca56ff2d88ce465e745e1356650f4a7 Mon Sep 17 00:00:00 2001 From: Leonard Date: Fri, 15 Mar 2013 12:31:33 +0100 Subject: [PATCH] Update installation_others.rst Update https rewrite. See http://wiki.nginx.org/Pitfalls#Taxing_Rewrites --- admin_manual/installation/installation_others.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/installation/installation_others.rst b/admin_manual/installation/installation_others.rst index 0044b39bc..b1db6fa52 100644 --- a/admin_manual/installation/installation_others.rst +++ b/admin_manual/installation/installation_others.rst @@ -19,7 +19,7 @@ Nginx Configuration server { listen 80; server_name cloud.example.com; - rewrite ^ https://$server_name$request_uri? permanent; # enforce https + return 301 https://$server_name$request_uri; # enforce https } server {