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:
parent
a24e803c93
commit
b0e6ccab6b
1 changed files with 3 additions and 3 deletions
|
@ -11,11 +11,11 @@ location ^~ __PATH__/ {
|
||||||
|
|
||||||
index index.php;
|
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$ {
|
location ~ \.php$ {
|
||||||
if (!-e $request_filename) {
|
if (!-e $request_filename) {
|
||||||
rewrite ^/lychee/?(.*)$ /lychee/index.php?/$1 last;
|
rewrite ^__PATH__/?(.*)$ __PATH__/index.php?/$1 last;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||||
|
@ -31,5 +31,5 @@ location ^~ __PATH__/ {
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
location @lychee {
|
location @lychee {
|
||||||
rewrite /lychee/(.*)$ /lychee/index.php?/$1 last;
|
rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue