404 location problem

lnxa nginx-forum at nginx.us
Thu Jan 14 06:41:33 MSK 2010

server {
    listen       80;
    server_name  www.abc.com;
    #root /data0/www/abc;
    #index index.htm index.html index.php;
    location / {
      root /data0/www/abc;
      index index.htm index.html index.php;
    location /blog/ {
    alias /data0/www/blog/;
    #php fastcgi
    location ~ \.php$ {
        root /data0/www/abc;
        fastcgi_index  index.php;
        #fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi.conf;


http://www.abc.com/blog/index.php error 403

in this case must copy /data0/www/blog to /data0/www/abc? not other idea?

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

More information about the nginx mailing list