error_page and named locations
Igor Sysoev
is at rambler-co.ru
Fri Dec 12 11:13:36 MSK 2008
On Thu, Dec 11, 2008 at 02:18:25PM -0800, mike wrote:
> or maybe something like "try_first"
>
> will it test files and directories or only files? would not want it to
> be try_file if it tests for dirs too :) i can see the need to test for
> both files and dirs.
In Unix a directory is a file :)
The new directive
1) tests file(s) existence,
2) and uses first found file as URI.
I want to find a name to express these actions.
> On Thu, Dec 11, 2008 at 12:44 PM, Jean-Philippe Moal
> <skateinmars at skateinmars.net> wrote:
>
> >>> Or "use_file" ?
> >>
> >> location / {
> >> file_with_fallback $uri $uri/index.html $uri.html
> >> @mongrel;
> >> }
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list