From b0e6ccab6b6b1bf9512906487c7fa90aa9ce6b87 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 13 Nov 2020 23:07:17 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 9e7a3ef..2a116c6 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,11 +11,11 @@ location ^~ __PATH__/ { index index.php; - try_files $uri $uri/ /lychee//lychee/index.php?$query_string; + try_files $uri $uri/ __PATH__/__PATH__/index.php?$query_string; location ~ \.php$ { if (!-e $request_filename) { - rewrite ^/lychee/?(.*)$ /lychee/index.php?/$1 last; + rewrite ^__PATH__/?(.*)$ __PATH__/index.php?/$1 last; break; } fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; @@ -31,5 +31,5 @@ location ^~ __PATH__/ { include conf.d/yunohost_panel.conf.inc; } location @lychee { - rewrite /lychee/(.*)$ /lychee/index.php?/$1 last; + rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last; }