Yet another "No input file specified." thread

Rob Schultz rschultz7 at gmail.com
Fri Sep 25 03:21:19 MSD 2009


either add another
root /var/www/nginx-default; to your location ~ \.php$ block or move  
the root directive into the server block instead of location /

On Sep 24, 2009, at 5:52 PM, hobson42 wrote:

> Hi folks.
> I've been tearing what little hair I have left out trying to find  
> the problem with this.
> nginx version 0.7.61 installed from Jeff Waughs site.  On Ubuntu 9.4  
> Jackalope.
>
> /etc/nginx/nginx.conf - standard, as issued. #
> /etc/nginx/sites-enabled/default  contains
> server {
> 	listen 80;
> 	server_name localhost ;
> 	access_log  /var/log/nginx/localhost.access.log;
> 	location / {
> 		root   /var/www/nginx-default
> 		index  index.html index.htm;
> 	}
> 	location ~ \.php$ {
> 		fastcgi_pass   127.0.0.1:9000;
> 		fastcgi_index  index.php;
> 		include /etc/nginx/fastcgi_params;
> 	}
> }






More information about the nginx mailing list