diff --git a/conf/nginx.conf b/conf/nginx.conf index cf253bc..c319377 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,12 @@ location __PATH__ { # Path to source -alias __FINALPATH__/www/ ; +alias __FINALPATH__/www/; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - + # Protecting sensibles urls location ~ 403 { rewrite ^(.*)$ /include/ redirect; @@ -20,10 +20,9 @@ if ($scheme = http) { } # Example PHP configuration (remove if not used) - location __PATH__/ { index index.php /_route.php; try_files $uri $uri/ index.php /_route.php; - } + location ~ [^/]\.php(/|$) { try_files $uri $uri/ /_route.php;