Welcome! Log In Create A New Profile

Advanced

Re: Nginx 0.8.54: Index files bug?

Maxim Dounin
February 11, 2011 10:38AM
Hello!

On Fri, Feb 11, 2011 at 09:13:06AM -0500, Dayo wrote:

> [code]
> server {
> ...
> index index.html;
> location / {
> error_log /path/to/log debug;
> try_files $uri $uri/;
> }
> }
> [/code]
>
> ...gives me an empty error log file.

It should log something like "rewrite or internal redirection
cycle" at "error" level. Obviously enough your config creates an
infinite loop on processing "/" as you set try_files's fallback to
effectively the same uri, just with extra "/" added.

No idea why you have no logs - most likely you did something wrong
(e.g. nginx has no access rights to write the file in question and
config wasn't actually loaded due to this error, but you've
overlooked related messages in global error_log).

> I don't think my isp has cached the response because as soon as I change
> to ...
>
> [code]
> server {
> ...
> index index.html;
> location / {
> try_files $uri $uri/ @proxy;
> }
> }
> [/code]
>
> It starts working ... using the apache index files setup.

This one should use index.html as an index (and fallback to @proxy
if no index.html found or there is no directory at all).

Maxim Dounin

_______________________________________________
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: 300
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