Welcome! Log In Create A New Profile

Advanced

nginx error handling/error page

steve yan
July 07, 2010 06:06PM
Hi,

This is a newbie question and was probably asked before.

I have an Apache web server, and nginx is used as reverse proxy server. In
nginx, I need to parse the response from Apache, if the error code from
Apache is 500, 502, 503, 504, or if the response body from Apache is empty,
I will do some special processing before send the static error page to the
client.

The conf has entry like this:

*error_page 500 502 503 504 /50x.html;*

What's the best way to do this?

--
Thanks,
Steve
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx error handling/error page

steve yan July 07, 2010 06:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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