From a27ac0744d74fae4682668adc6a0c0cf59b595b6 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sun, 1 Nov 2015 19:52:13 +0530 Subject: [PATCH] Missing " / "and "fastcgi_param SCRIPT_FILENAME $request_filename;" Nginx gives error on reload if "/" is not present(the nginx will never load after reboot) .If " / " is added nginx will give blank page . So this line need to be added to make it work again" fastcgi_param SCRIPT_FILENAME $request_filename;" . --- conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0bea8155..cc966b89 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -location YNH_WWW_PATH { +location YNH_WWW_PATH / { # Path to source alias YNH_WWW_ALIAS/ ; @@ -18,6 +18,7 @@ location YNH_WWW_PATH { include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $request_filename; } # .htaccess file from Hubzilla converted using http://winginx.com/en/htaccess