Welcome! Log In Create A New Profile

Advanced

Re: 404 location problem

January 13, 2010 10:41PM
[code]
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_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi.conf;
}

}
[/code]
http://www.abc.com/blog/index.php [b]error 403[/b]

in this case must copy [b]/data0/www/blog[/b] to [b]/data0/www/abc[/b]? not other idea?
Subject Author Posted

404 location problem

lnxa January 13, 2010 09:31PM

Re: 404 location problem

Maxim Dounin January 13, 2010 09:58PM

Re: 404 location problem

lnxa January 13, 2010 10:21PM

Re: 404 location problem

lnxa January 13, 2010 10:41PM

Re: 404 location problem

Maxim Dounin January 14, 2010 05:10AM

Re: 404 location problem

lnxa January 14, 2010 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready