| From | Sent On | Attachments |
|---|---|---|
| Douglas A. Seifert | Feb 2, 2008 3:18 pm | |
| Maxim Dounin | Feb 2, 2008 4:36 pm | |
| Douglas A. Seifert | Feb 2, 2008 5:08 pm | |
| Maxim Dounin | Feb 2, 2008 5:20 pm | |
| Eden Li | Feb 2, 2008 5:22 pm | |
| Douglas A. Seifert | Feb 2, 2008 6:14 pm | |
| Douglas A. Seifert | Feb 2, 2008 6:15 pm | |
| Maxim Dounin | Feb 2, 2008 6:33 pm | |
| Eden Li | Feb 2, 2008 6:47 pm | |
| Maxim Dounin | Feb 2, 2008 7:15 pm | |
| Douglas A. Seifert | Feb 2, 2008 8:02 pm | |
| Corey Donohoe | Feb 2, 2008 10:39 pm | |
| Igor Sysoev | Feb 2, 2008 10:40 pm | |
| Douglas A. Seifert | Feb 3, 2008 7:51 am | |
| Douglas A. Seifert | Feb 3, 2008 7:58 am | |
| Corey Donohoe | Feb 3, 2008 9:59 am | |
| Doug Seifert | Feb 3, 2008 1:36 pm | |
| Killian Murphy | Jun 19, 2009 9:47 pm | |
| Spirit Spirit | Nov 26, 2009 2:31 pm | |
| Igor Sysoev | Nov 26, 2009 10:02 pm | |
| spirit | Dec 2, 2009 1:46 pm |
| Subject: | Re: Custom 503 Error Page | |
|---|---|---|
| From: | Maxim Dounin (mdou...@public.gmane.org) | |
| Date: | Feb 2, 2008 6:33:38 pm | |
| List: | ru.sysoev.nginx | |
Hello!
On Sat, Feb 02, 2008 at 06:16:15PM -0800, Douglas A. Seifert wrote:
On Sun, 2008-02-03 at 04:20 +0300, Maxim Dounin wrote:
Hello!
On Sat, Feb 02, 2008 at 05:08:29PM -0800, Douglas A. Seifert wrote:
I start getting a 503 HTTP status code, but the content is not my custom error page, but rather the default 503 response compiled into the nginx server.
Am I doing something terribly wrong? I would really like to see my custom page with a real 503 HTTP status code.
If you want to use custom response for 503 error, you should write
error_page 503 /system/maintenance.html;
in your config.
Thanks for the response. Unfortunately, however, that has no effect. I still
see the compiled in 503 content.
Probably because you have error_page 503 redefined later in your config to /503.html.
Maxim, Thanks for trying, but it doesn't matter where in the config the error_page directive is placed, the result is the same: a 503 response with the compiled in 503 content.
Just another quick note: due to some implementation wierdness of ngx_http_rewrite_module, it may be required to define error_page _before_ if/return block. Try something like this:
error_page 503 /system/maintenance.html;
if (-f ...) { return 503; }
Maxim Dounin





