Custom error pages

Bai Shen baishen.lists at gmail.com
Fri Mar 16 13:34:34 UTC 2012


I should still be able to use the listen and server_name directives to have
this apply to certain servers, correct?

On Thu, Mar 15, 2012 at 3:24 PM, Francis Daly <francis at daoine.org> wrote:

> On Thu, Mar 15, 2012 at 10:48:13AM -0400, Bai Shen wrote:
>
> Hi there,
>
> > How do I get nginx to serve the page?  I added in the line from the link,
> > but I still get the default nginx page, not my custom one.
>
> ===
>    server {
>        error_page 503 /my-503-error.html;
>        location / {
>            return 503;
>        }
>        location = /my-503-error.html {
>            internal;
>        }
>    }
> ===
>
> will serve the content of the file my-503-error.html in your document
> root with a http status 503 for (almost) every request to this server.
>
>        f
> --
> Francis Daly        francis at daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120316/3eb9ccf8/attachment.html>


More information about the nginx mailing list