GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Show proper page when application is down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Show proper page when application is down" Watch "Show proper page when application is down" New topic
Author

Show proper page when application is down

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 507
We are using Apache Webserver and Apache Tomcat for our application. Now every time app goes down for upgrade, we take down the server, and if someone hits the public URL at that time, we want to show customized page that app is down and we are working on it. How can I do that?

Thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
You could use an Apache ErrorDocument directive for the appropriate error code (probably 503).


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: Show proper page when application is down