diff --git a/conf/nginx.conf b/conf/nginx.conf index 7ac9110..1659038 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,16 +1,13 @@ location ^~ YNH_WWW_PATH { - root /var/www; + alias YNH_WWW_ALIASwww/ ; try_files $uri $uri/ /YNH_WWW_APP/index.php?$query_string; index /YNH_WWW_APP/index.php; location ~* \.php$ { - fastcgi_split_path_info ^(.+.php)(/.+)$; + fastcgi_split_path_info ^(.+\.php)(/.+)$; 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_read_timeout 600; + include fastcgi_params; } location ~* \.html$ {