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
cbbeb29334
commit
b538d57335
1 changed files with 3 additions and 6 deletions
|
@ -1,16 +1,13 @@
|
||||||
location ^~ YNH_WWW_PATH {
|
location ^~ YNH_WWW_PATH {
|
||||||
root /var/www;
|
alias YNH_WWW_ALIASwww/ ;
|
||||||
try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string;
|
try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string;
|
||||||
index /YNH_WWW_APP/index.php;
|
index /YNH_WWW_APP/index.php;
|
||||||
|
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
fastcgi_split_path_info ^(.+.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability
|
|
||||||
fastcgi_index yellow.php;
|
fastcgi_index yellow.php;
|
||||||
fastcgi_read_timeout 600;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.html$ {
|
location ~* \.html$ {
|
||||||
|
|
Loading…
Reference in a new issue