Welcome! Log In Create A New Profile

Advanced

Re: Nginx + Passenger error_page setup

Maxim Dounin
August 18, 2011 07:26AM
Hello!

On Thu, Aug 18, 2011 at 05:49:40AM -0400, ysorigin wrote:

> Im running a Merb project base on Nginx + Passenger, when the
> application got error, it will raise 502 Bad Gateway page. so we want to
> customize the error page. so we add these to the configuration file:
>
> http{
> server{
> ....
> error_page 500 502 503 504 /500.html;
> location = /500.html {
> root /home/some_dir/;
> }
> ....
> }
> ]
>
> but it couldn't work, I google a lot, but couldn't get correct solution,
> am I miss sth?

You need something like proxy_intercept_errors, see
http://wiki.nginx.org/HttpProxyModule#proxy_intercept_errors

No idea if passenger has one, but you may try something like
"passenger_intercept_errors".

Maxim Dounin

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

Nginx + Passenger error_page setup

ysorigin August 18, 2011 05:49AM

Re: Nginx + Passenger error_page setup

Maxim Dounin August 18, 2011 07:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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