If fastcgi is running I get "No input file specified." If the fastcgi is not up, I get "The page you are looking for is temporarily unavailable." This is my config file:
server {
listen 80;
server_name website.org;
root /home/user/public_html;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/user/public_html$fastcgi_script_name;
include /usr/local/nginx/conf/fastcgi_params;
}
error_page 500 502 503 504 /50x.html;
location = /home/user/public_html/50x.html {
root html;
}
}
I've read that changing value for cgi.fix_pathinfo and cgi.force_redirect in php.ini might help but for me it didn't.