error_page and named locations
Jean-Philippe Moal
skateinmars at skateinmars.net
Thu Dec 11 23:44:47 MSK 2008
Ezra Zygmuntowicz a écrit :
>>>> od name for this feature (which will certainly be _really_
>>>> useful, thanks !).
>>>
>>> How about "try_file $uri $uri/index.html ..." or "test_file $uri
>>> ..." ?
>>
>> Or "use_file" ?
>
> location / {
> file_with_fallback $uri $uri/index.html $uri.html
> @mongrel;
> }
>
>
> Seems to express the idea?
>
> Cheers-
>
> Ezra
>
'try_file' looks great. I don't think there is a need to refer to 'fallback' in
the feature itself as this is optional.
More information about the nginx
mailing list