aspose file tools
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


Win a copy of The Software Craftsman this week in the Agile forum!
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: 512
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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
You could use an Apache ErrorDocument directive for the appropriate error code (probably 503).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Show proper page when application is down