Nginx 0.8.54: Index files bug?

Igor Sysoev igor at sysoev.ru
Fri Feb 11 14:50:35 MSK 2011


On Fri, Feb 11, 2011 at 06:45:25AM -0500, Dayo wrote:
> 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?

What is in error_log ?


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



More information about the nginx mailing list