From c938a6ea79eae06ab464de464a379665a43495d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 27 Feb 2024 09:13:26 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 96bf29e..9608359 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,24 +1,24 @@ -location __PATH__/cache { +location ^__PATH__/cache { rewrite ^(.*)$ /error break; } -location __PATH__/content { +location ^__PATH__/content { rewrite ^(.*)$ /error break; } -location __PATH__/system { +location ^__PATH__/system { rewrite ^(.*)$ /error break; } #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location ^__PATH__/ { alias __INSTALL_DIR__/ ; index yellow.php; if (!-e $request_filename) { - rewrite ^(.*)$ __PATH__/yellow.php last; + rewrite ^(.*)$ ^__PATH__/yellow.php last; break; }