Welcome! Log In Create A New Profile

Advanced

Re: Nginx + HAProxy, custom 503 Error

Maxim Dounin
February 20, 2010 11:36AM
Hello!

On Thu, Feb 18, 2010 at 01:24:34AM -0500, jmadtech wrote:

> Hey all,
>
> I'm currently using Nginx & HAProxy with a Rails Application on
> the backend (using mongrels).
>
> I've configured my Nginx config file with a custom 50x error
> page:
>
> error_page 500 502 503 /500.html;
> location = /500.html {
> internal;
> }
>
> If I shut my mongrels off and try to access the page, I get the
> default 503 error page that comes with Nginx, not my custom
> 500.html page. Turning on my mongrels and turning off the
> database generates a 500 error and I get the default 500 error
> page as well.

http://wiki.nginx.org/NginxHttpProxyModule#proxy_intercept_errors

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx + HAProxy, custom 503 Error

jmadtech February 18, 2010 01:24AM

Re: Nginx + HAProxy, custom 503 Error

Maxim Dounin February 20, 2010 11:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 260
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