Nginx 0.8.54: Index files bug?

Dayo nginx-forum at nginx.us
Fri Feb 11 14:45:25 MSK 2011


Just noticed an issue with my 0.8.54 installation.

1. URL = www.site.com, Result = 500 error
[code]
server {
...
	index index.html;
	location / {
		try_files $uri $uri/;
	}
}
[/code]

2. URL = www.site.com, Result = 500 error
[code]
server {
...
	location / {
	index index.html;
		try_files $uri $uri/;
	}
}
[/code]

3. URL = www.site.com, Result = 200 OK
[code]
server {
...
	location / {
		try_files $uri $uri/index.html;
	}
}
[/code]

4. URL = www.site.com/index.html, Result = 200 OK
[code]
server {
...
	location / {
		try_files $uri $uri/;
	}
}
[/code]

It seems that the index module does not work with the try_files
directive. Would have expected the trying of '$uri/' to include the
defined index but it doesn't do so.

Anyone else notice this?

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




More information about the nginx mailing list