index.html not detected?

Igor Sysoev is at rambler-co.ru
Mon May 19 16:23:23 MSD 2008


On Sun, May 18, 2008 at 04:36:39PM -0400, Floren Munteanu wrote:

> Any idea why domain.com/index.html is not detected, when I visit:
> http://www.domain.com/ ?
> 
> listen					80;
> server_name					www.domain.com;
> 
> location / {
> 	root					/var/www/html;
> 	index					index.html index.htm;
> 
> 	fastcgi_index			index.php;
> 	fastcgi_pass			127.0.0.1:9000;
> 	fastcgi_param			SCRIPT_FILENAME
> /var/www/html$fastcgi_script_name;
> 	include				fastcgi.conf;
> 
> }

Because http://www.domain.com/ in this configuraiton is handled by
/var/www/html/index.php

Is index.html simple static file ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list