From 8614bfc04c95ebb06045841969c0271062c32497 Mon Sep 17 00:00:00 2001 From: titoko titoko Date: Fri, 29 Nov 2013 15:15:48 +0100 Subject: [PATCH] force https --- conf/nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0c64a25..1c815e0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,9 @@ location PATHTOCHANGE { alias ALIASTOCHANGE ; - index index.php; + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + index index.php; try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$;