February 11, 2011 06:54AM
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/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 06:45AM

Re: Nginx 0.8.54: Index files bug?

Igor Sysoev February 11, 2011 06:54AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 07:16AM

Re: Nginx 0.8.54: Index files bug?

Igor Sysoev February 11, 2011 07:48AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 08:33AM

Re: Nginx 0.8.54: Index files bug?

Igor Sysoev February 11, 2011 08:50AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 09:13AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 10:36AM

Re: Nginx 0.8.54: Index files bug?

Maxim Dounin February 11, 2011 10:38AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 10:43AM

Re: Nginx 0.8.54: Index files bug?

Igor Sysoev February 11, 2011 11:00AM

Re: Nginx 0.8.54: Index files bug?

Maxim Dounin February 11, 2011 11:12AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 11:29AM

Re: Nginx 0.8.54: Index files bug?

Dayo February 11, 2011 12:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
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