diff --git a/conf/nginx.conf b/conf/nginx.conf index d24f0d7..2d343ab 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,9 @@ location __PATH__ { alias __FINALPATH__/www/; + + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } # Default indexes and catch-all index index.html index.php;