Forum Moderators: phranque

Message Too Old, No Replies

Apache with mod jk maintenance page when tomcat goes down

Apache with mod_jk maintenance page when tomcat goes down

         

webamol

12:30 pm on Sep 4, 2016 (gmt 0)

5+ Year Member



Hello All,

I would like to set Apache maintenance page when tomcat goes down.

I have apache installed and using mod_jk connector to redirect request to backend tomcat servers.

I did following configurations under virtualhost 443 to setup maintenance page but it is not working as expected.

Alias /error/ "/opt/apache24/htdocs/"
ErrorDocument 503 /error/maintenance.html
JKMount /UserPortal tomcat1
JKMount /UserPortal/* tomcat1
JkUnMount /error* tomcat1

Kindly suggest if anything else is required to setup maintenance page.

Thanks

whitespace

5:59 pm on Sep 4, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



You'll need something to trigger the 503 error document. All you have done is define it. Unless JKMount triggers a 503 when "tomcat goes down", you'll need to manually trigger this somehow. Are you able to detect when "tomcat is down"? What causes it to "go down"?

webamol

6:38 am on Sep 5, 2016 (gmt 0)

5+ Year Member



I am manually bringing it down. Kindly let me know if my configuration is correct and if I need to do anything else to get my customized maintenance page when backend tomcat server is down on remote host machine

Thanks