Welcome! Log In Create A New Profile

Advanced

Re: Custom error pages

Bai Shen
March 16, 2012 09:44AM
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@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@daoine.org
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Custom error pages

Bai Shen March 13, 2012 09:40AM

Re: Custom error pages

Francis Daly March 13, 2012 07:42PM

Re: Custom error pages

Bai Shen March 14, 2012 08:52AM

Re: Custom error pages

Bai Shen March 15, 2012 10:50AM

Re: Custom error pages

Francis Daly March 15, 2012 03:26PM

Re: Custom error pages

Bai Shen March 16, 2012 09:36AM

Re: Custom error pages

Bai Shen March 16, 2012 09:44AM

Re: Custom error pages

Francis Daly March 16, 2012 11:20AM

Re: Custom error pages

Bai Shen March 16, 2012 02:28PM

Re: Custom error pages

Bai Shen March 28, 2012 03:44PM

Re: Custom error pages

Francis Daly March 28, 2012 05:18PM

Re: Custom error pages

Bai Shen April 03, 2012 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready