From b8383f9a483a8c61d2bb6f10d24ac1a7e4fbca16 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Fri, 7 Aug 2020 18:58:18 +0200 Subject: [PATCH] syntax nginx changed --- conf/nginx.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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;