404 location problem

lnxa nginx-forum at nginx.us
Thu Jan 14 05:31:34 MSK 2010


this configure
can't visit www.abc.com/blog/index.php error 404
but can visit www.abc.com/blog/info.txt
I don't know how to do?
please tell me! thanks.


server {
    listen       80;
    server_name  www.abc.com;
    root /data0/www/abc;
    index index.htm index.html index.php;

    location /blog/ {
    root /data0/www;
    }
    #php fastcgi
    location ~ .*\.php?$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        #fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi.conf;
    }
        

    access_log  /var/log/nginx/access.log  main;
}


Posted at Nginx Forum: http://forum.nginx.org/read.php?2,40962,40962#msg-40962




More information about the nginx mailing list