How to configure a page to display while server is in planned maintenance in Jboss? -


how configure in jboss, when server in planned maintenance(not down), display error page? thanks.

two possibilities:

  1. inside jboss: during time application, myapp.war, down, can deploy myapp.war single html/jsp file, displaying server under maintenance. see hello, world! web app example simple web app.
  2. if jboss runs behind webserver, such apache, can enable rewrite during maintenance:
     rewriteengine on rewriterule ^.*$ http://yourdoman.com/maintenance-info.html [l,r] 

we use second option because shutdown jboss instance.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -