mod_jk fails to detect error state because JBoss gives 404, not 500
Posted
by
Ilya Sher
on Server Fault
See other posts from Server Fault
or by Ilya Sher
Published on 2012-03-09T10:49:52Z
Indexed on
2012/03/19
10:08 UTC
Read the original article
Hit count: 421
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 configuremod_jk
to treat 404 as an "error state"
© Server Fault or respective owner