Config help needed

Ian Hobson ian at ianhobson.co.uk
Thu Sep 22 16:33:15 UTC 2011


To reply to my own post.

It was a permissions problem.  php could not read the file, and was 
reporting it as not there!

Thanks
Ian

On 22/09/2011 14:29, Ian Hobson wrote:
> Hi All,
>
> My site is wordpress, and configured as follows.
>
> # Statements for KindleMonster.com  virtual server
> server {
>     listen   80;
>     #
>     server_name kindlemonster.com www.kindlemonster.com;
>     root /var/www/kindlemonster.com/htdocs;
>     access_log  /var/www/kindlemonster.com/access.log;
>     index index.php index.html index.htm;
>     #
>     # redirect server error pages to the static page /50x.html
>     #
>     error_page   500 502 503 504  /50x.html;
>     # protect usage stats
>     location ^~ /usage/ {
>       auth_basic "Hello, please login";
>       auth_basic_user_file /var/www/kindlemnonster.com/passwords;
>     }
>     # all  .php requests to fastcgi using uri.
>     location ~ \.php$ {
>         include /etc/nginx/fastcgi_params;
>         fastcgi_pass 127.0.0.1:9000;
>         # fastcgi_param SCRIPT_FILENAME 
> $document_root$fastcgi_script_name;
>     }
>     try_files $uri $uri/ /index.php;
> }
>
> Wordpress works just fine. I have just uploaded a new file to 
> /form.php and when
> I try to browse to it I get the super helpful error message of
>
> No input file specified.
>
> The log says its a 404.
>
> OK - Why do all the wordpress files (mostly php) work just fine, and 
> my new file does not?
>
> Thanks
>
> Ian
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1410 / Virus Database: 1520/3911 - Release Date: 09/21/11
>
>



More information about the nginx mailing list