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;