mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
Update nginx.conf to have only one file
This commit is contained in:
parent
e61e52ce7c
commit
3e4bbc7de6
1 changed files with 7 additions and 7 deletions
|
@ -1,13 +1,13 @@
|
|||
location ^~ YNH_WWW_PATH {
|
||||
root /var/www;
|
||||
try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string;
|
||||
index /YNH_WWW_APP/index.php;
|
||||
alias YNH_WWW_FINALPATH/ ;
|
||||
try_files $uri $uri/ /YNH_WWW_ROOTAPP/index.php?$query_string;
|
||||
index /YNH_WWW_ROOTAPP/index.php;
|
||||
|
||||
location YNH_WWW_PATH/ { try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string; }
|
||||
location YNH_WWW_PATH/api { try_files $uri $uri/ /YNH_WWW_APP/api.php?$query_string; }
|
||||
location YNH_WWW_PATH/admin { try_files $uri $uri/ /YNH_WWW_APP/admin.php?$query_string; }
|
||||
location YNH_WWW_ROOTPATH/ { try_files $uri $uri/ /YNH_WWW_ROOTAPP/index.php?$query_string; }
|
||||
location YNH_WWW_ROOTPATH/api { try_files $uri $uri/ /YNH_WWW_ROOTAPP/api.php?$query_string; }
|
||||
location YNH_WWW_ROOTPATH/admin { try_files $uri $uri/ /YNH_WWW_ROOTAPP/admin.php?$query_string; }
|
||||
|
||||
location YNH_WWW_PATH/flarum {
|
||||
location YNH_WWW_ROOTPATH/flarum {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue