diff --git a/conf/nginx.conf b/conf/nginx.conf index b73524a..2c53162 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,8 @@ -location __PATH__ { +#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +location __PATH__/ { + + # Path to source + alias __FINALPATH__/www/; # Protecting sensibles urls location ~ 403 { @@ -12,9 +16,6 @@ location __PATH__ { rewrite ^(.*)$ /config\.(.*)\.php redirect; } -# Path to source -alias __FINALPATH__/www/; - if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; }