mod_jk fails to detect error state because JBoss gives 404, not 500
- by Ilya Sher
Configuration:
Apache + mod_jk, several workers on other machines (load balancing).
When JBoss fails to deploy an application for example because of failed connection to the database, requests to /myapp/somepage generate 404.
How do I configure JBoss to return 500 for everything under /myapp when the application failed to deploy?
Additional info:
Since 404 is not an "error state" code, mod_jk does not mark the worker as failed and continues to route the traffic there.
Since there might be valid requests to this application also generating 404, I can not configure mod_jk to treat 404 as an "error state"