From 542097d0d91a54720df73f202edf0e81ea87dc56 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sun, 7 Apr 2024 17:54:35 +0200 Subject: [PATCH] Update nginx.conf: no need for ^ in non-regex locations ? x_x --- conf/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9608359..5c4e020 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,17 +1,17 @@ -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__/ ;