Custom error pages
Bai Shen
baishen.lists at gmail.com
Fri Mar 16 13:43:39 UTC 2012
I added this into my config file, and put my-503-error.html in the same
location as the default 50x.html file, but all I get is a generic 404 error
page.
Is that not the document root for nginx?
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/efe95d08/attachment.html>
More information about the nginx
mailing list