1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2020-11-13 22:52:25 +01:00
parent 01a71fa07e
commit 66738f55b5
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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;
}