Hi,<br><br>This is a newbie question and was probably asked before.<br><br>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.<br>
<br>The conf has entry like this:<br><br><i>error_page 500 502 503 504 /50x.html;</i><br><br>What's the best way to do this?<br clear="all"><br>-- <br>Thanks,<br>Steve<br>