How to show maintenance webpage when tomcat shutdown

Confluence User - 18 Oct, 2024

I want to redirect to maintenance webpage during Joget shutdown and maintenance, how could I set in tomcat ?

server;userviews

1


19 Oct, 2024
confluenceUser
confluenceUser

Try https://stackoverflow.com/a/61111926 if you are using tomcat only and without RP/LB in front of tomcat.

Your server.xml should include on your main host:

<Host appBase="webapps" autoDeploy="false" name="localhost">
    <!-- ... your other configs ... -->
    <Valve className="org.apache.catalina.valves.ErrorReportValve" errorCode.404="<path to your html, may be relative to $CATALINA_HOME or absolute>"/>
</Host>


RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print