diff --git a/conf/nginx.conf b/conf/nginx.conf index fa6bad6..1d7ef8d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location ^~ __PATH__/ { try_files $uri $uri/ @lychee; 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; @@ -30,5 +30,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; }