mirror of
https://github.com/YunoHost-Apps/yellow_ynh.git
synced 2024-09-03 20:36:12 +02:00
Update nginx.conf
This commit is contained in:
parent
31e2ee868f
commit
c938a6ea79
1 changed files with 5 additions and 5 deletions
|
@ -1,24 +1,24 @@
|
||||||
location __PATH__/cache {
|
location ^__PATH__/cache {
|
||||||
rewrite ^(.*)$ /error break;
|
rewrite ^(.*)$ /error break;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/content {
|
location ^__PATH__/content {
|
||||||
rewrite ^(.*)$ /error break;
|
rewrite ^(.*)$ /error break;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/system {
|
location ^__PATH__/system {
|
||||||
rewrite ^(.*)$ /error break;
|
rewrite ^(.*)$ /error break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location __PATH__/ {
|
location ^__PATH__/ {
|
||||||
|
|
||||||
alias __INSTALL_DIR__/ ;
|
alias __INSTALL_DIR__/ ;
|
||||||
|
|
||||||
index yellow.php;
|
index yellow.php;
|
||||||
|
|
||||||
if (!-e $request_filename) {
|
if (!-e $request_filename) {
|
||||||
rewrite ^(.*)$ __PATH__/yellow.php last;
|
rewrite ^(.*)$ ^__PATH__/yellow.php last;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue