Welcome! Log In Create A New Profile

Advanced

Re: try_files doubleslash mystery

Francis Daly
August 20, 2019 09:24AM
On Sun, Aug 18, 2019 at 11:40:59AM +0200, Maik Beckmann via nginx wrote:
> Am Sa., 17. Aug. 2019 um 20:04 Uhr schrieb Francis Daly <francis@daoine.org>:

Hi there,

> What I still don't understand is how the existence of an directory
> results in subrequest/internal redirect. Is that documented
> somewhere?

The 100% accurate documentation is in the directory "src"; but it may
not be in an easy-to-understand format.

So I'd suggest trying to understand what try_files is intended to do.

(Which is approximately: use this file if it exists. The subtleties will
matter sometimes.)

And what should it mean for the administrator to ask it to "try"
a directory?

I expect it means something like "use this directory as the response
to the request". And "use a directory" is implemented by the filesystem
handler as "make a subrequest for the first element of 'index' that
exists in that directory".

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

try_files doubleslash mystery

Maik Beckmann via nginx August 17, 2019 04:26AM

Re: try_files doubleslash mystery

Francis Daly August 17, 2019 02:06PM

Re: try_files doubleslash mystery

Maik Beckmann via nginx August 18, 2019 05:42AM

Re: try_files doubleslash mystery

Francis Daly August 20, 2019 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready