location = / strange behavior
fritz
nginx-forum at nginx.us
Tue Aug 4 18:28:22 MSD 2009
Hi.
If URI is "/" I need to show index.html.
Else I need to execute a php script.
According to http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#location
my config looks like this:
server {
listen 80;
server_name localhost;
location = / {
root /home/www;
index index.html;
}
location / {
fastcgi_pass 127.0.0.1:8888;
fastcgi_param SCRIPT_FILENAME /home/www/click.php;
...
}
}
But always triggers only the second rule.
Tried with 0.6.32 and 0.7.59.
Thanks in advance.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,4723,4723#msg-4723
More information about the nginx
mailing list