From e788166cc1d15fa640b6b8ca9a8373a1bd89d159 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 23 Jul 2017 13:42:48 +0200 Subject: [PATCH] [enh] Add https redirection (#50) --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 14603f1..4ac3161 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,9 @@ location ^~ YNH_WWW_PATH { + + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + alias YNH_WWW_FINALPATH/; try_files $uri $uri/ /index.php?$query_string; index YNH_WWW_ROOTPATH/index.php;