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)(/.*)$;