error_page and named locations
is at rambler-co.ru
Fri Dec 12 14:12:46 MSK 2008
On Fri, Dec 12, 2008 at 10:50:21AM +0100, Igor Clark wrote:
> Hi Igor,
> Igor Sysoev wrote:
> > 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.
> If there's an implied
> 3) falls back to a named location if no file is found
> then I think it would be good to have some reference to the fallback
> functionality, even if it's optional, as explicit names are more clear,
> and for people trying to read documentation, directive names with
> 'hidden' functionality are hard to find.
Yes, however, fallback is not optional. The directive has at least two
parameters: the last one will be always fallback and it may be
@named_location or /uri/that/should/not/fail.
> The 'uri' bit, on the other hand, can be assumed, as we know from the
> fact that we're in a location block that this directive is dealing with
> a particular URI, so we need to express what this directive does to
> fulfil the request for that URI.
> So I'd like to suggest something like 'try_files_with_fallback' - it's
> perhaps a bit wordy, but seems to express more clearly what's happening.
I think fallback should not be mentioned.
More information about the nginx