server_name "";

Sean Allen sean at monkeysnatchbanana.com
Sun Dec 20 08:03:37 MSK 2009


On Sat, Dec 19, 2009 at 9:19 PM, Edho P Arief <edhoprima at gmail.com> wrote:
> On Sun, Dec 20, 2009 at 5:22 AM, Sean Allen <sean at monkeysnatchbanana.com> wrote:
>>> Why not use clear try_files instead of these ugly maintenance if/set/rewrites:
>>>
>>
>> because /maintenance/maintenance.html always exists.
>>
>> and it because the default that gets served based on the existence of
>> .maintenance in the document root.
>>
>
> try_files /.maintenance $uri @fallback;
>
> location = /.maintenance
> {
>  .......
> }

so locaiton = /.maintence rewrites to serving maintenance.html for
anything outside of /maintenance?

and @fallback would be?



More information about the nginx mailing list