From 679a0a201dfafc93252423f6de7c2492a335e640 Mon Sep 17 00:00:00 2001 From: Binnette Date: Wed, 6 Apr 2022 23:45:40 +0200 Subject: [PATCH] Fix nginx.conf --- conf/nginx.conf | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 46e5e46..4fcabbb 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,9 +1,8 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location /__PATH__ { +location __PATH__ { + + root /var/www/; - # Path to source - alias __FINALPATH__/; - location ~ [^/]\.php(/|$) { fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_index index.php; @@ -15,15 +14,15 @@ location /__PATH__ { fastcgi_param SCRIPT_FILENAME $request_filename; } - location ~ ^/__PATH__/((favicons|thumbnails)/.+)$ { - try_files /__PATH__/data/$1 =404; + location ~ ^__PATH__/((favicons|thumbnails)/.+)$ { + try_files __PATH__/data/$1 =404; } - location ~ ^/__PATH__/$ { + location ~ ^__PATH__/$ { index index.php; } - location ~ ^/__PATH__/(.+)$ { - try_files /__PATH__/public/$1 /__PATH__/index.php$is_args$args; + location ~ ^__PATH__/(.+)$ { + try_files __PATH__/public/$1 __PATH__/index.php$is_args$args; } }