We have a problem with a relatively dumb loadbalancer that sits in front of an Apache Webserver. The Apache Webserver again is a reverse proxy for an application server.
The problem starts when the application goes down. This makes the Apache throw an error code.
The problem is that the loadblancer only considers a hard tcp error for removing a server from the pool. This means that error pages will go through the loadbalancer to the user instead of the server just being removed from the pool.
Is it possible to configure Apache to reject a tcp request on backend a backend error?