Custom 503 Error Page

Douglas A. Seifert dseifert at searchspark.com
Sun Feb 3 05:15:08 MSK 2008


On Sun, 2008-02-03 at 09:23 +0800, Eden Li wrote:
> Try:
> 
> if (-f $document_root/system/maintenance.html) {
>    rewrite ^(.*)$ @maintenance last;
> }
> 
> location = @maintenance {
>    error_page 503 /system/maintenance.html;
>    return 503;
> }

Unfortunately, I get the same result: a 503 with the compiled in 503
content.

Thanks,
Doug Seifert





More information about the nginx mailing list