-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

John,

On 3/12/14, 2:28 PM, John Smith wrote:
> Is there a straightforward way to toggle or add something in
> Tomcat, in the event a webapp is intentionally taken 'offline for
> maintenance"? The user would receive the same single notification
> page saying as much, for any and all requests.
> 
> Tomcat 7.0.42

Deploy a ROOT web application whose 404 page says "Down for
maintenance". You could even customize this kind of thing to only
respond to certain URL-prefixes (like [ROOT]/mywebapp/*).

What will you do while Tomcat is restarting, though, if you have to
restart?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTIdFkAAoJEBzwKT+lPKRYSJQP/11vkStGCqxDjhqQDXfGype5
nGeEDk+8/FDI6rUdo91VRxSLK8pb8l8yo1RtJsOL7C9fUtDO85k0fddN4hM0u5oR
0foguz3jFHsoC336duDdYq75mbXJ2hW9MatDQitYGCCy70F/aER9o0eDRu16XZ5d
KZ55i7Eu8vcqL6uzeLU8IDcanm0BvhPRGLCccL51ZbpG8C7zgi6ZKRDEx7/mYpZB
5sNPEiKpYSBbVD95Xkx7qAN22IJW+WWUTeiJqPlcliRX9Qj5aR4DZK6Jrw+7oO/t
MooE2z5a8TBSRp/aNW6JPUUcS/psui2EFUshne9bOPXeDPBotRFIdeGgNflJpD3S
/0TD/9BFmpk+S3jXK/Ut0HirLrI40Ulq90uumXDe+DfZwGgtnFQQS69BbFxuzJJU
92MuubotRTWq9a2r//+N8pbQTgqsMRw38slJGuxTiR+xlMUpUVdgdRZJf4p18yiC
VpZ4LSu/XDotw+I3EPDhdaxw4KmVFaICjDheqfF3mGVmDO1QIK4J6Z8SrprWdW/A
DSSTjsh1WTXhIn0n7EjTgetKVpumoru+SZltSOmsRzcfZoVGpbSx1wANlU1BqIi1
OiWEZZlDJEXHm1AFUEIkUpm+IPBKwltWHXzgcJzj6oe7FJFmQMgfw80RhzNz5YvH
yCeJu12avdklRUkxJ4xj
=ViRn
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to