Welcome! Log In Create A New Profile

Advanced

Re: Minimal configuration

B.R.
February 17, 2014 08:16AM
Sorry for my fluffy terminology.
What I called 'error handler' was the final argument of the try_files
directive, the one used if any other one fails to detect a valid
file/directory.

We ended concluding that:
try_files $uri $uri/; was invalid, looping internally for an infinite
amount of time
try_files $uri $uri/ /; was valid

I still don't get why the first case is invalid, with all the input you
provided me with:
The request URI was '/', so $uri = /, thus the first agument of try_files
should match the root directory and process it further (finding the index
file, etc.).
Why hasn't it been the case?

Otherwise stated: defaulting to '/' in the valid syntax means that both
'$uri' and '$uri/' values (both equalling '/' after cleanup of redundant
slashes) don't point towards a valid directory. This is obviously wrong,
since the root directory exists (and is processed when the fallback to the
'/' argument happens).

Considering all that, one could wonder why the 1st syntax is invalid.

I hope I clarified my question... It seems simple from my point of view :o\
---
*B. R.*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Minimal configuration

B.R. February 15, 2014 06:32AM

Re: Minimal configuration

Francis Daly February 15, 2014 04:56PM

Re: Minimal configuration

B.R. February 16, 2014 02:46PM

Re: Minimal configuration

Francis Daly February 16, 2014 04:40PM

Re: Minimal configuration

B.R. February 16, 2014 05:02PM

Re: Minimal configuration

Francis Daly February 16, 2014 05:26PM

Re: Minimal configuration

B.R. February 16, 2014 06:44PM

Re: Minimal configuration

Francis Daly February 17, 2014 03:44AM

Re: Minimal configuration

B.R. February 17, 2014 08:16AM

Re: Minimal configuration

Francis Daly February 17, 2014 03:38PM

Re: Minimal configuration

B.R. February 17, 2014 05:18PM

Re: Minimal configuration

Francis Daly February 20, 2014 04:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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