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:
- 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.
- 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
Post a Comment