You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Giuseppe Sacco <gi...@eppesuigoccas.homedns.org> on 2020/06/03 07:09:42 UTC

Re: mod_jk and application deployed check

Il giorno ven, 29/05/2020 alle 14.09 -0400, Christopher Schultz ha
scritto:
> Giuseppe,
> 
> On 5/29/20 11:57, Giuseppe Sacco wrote:
> > [...]
> > misconfigured machines and failed with 404 errors. From what I
> > understood, the mod_jk protocol only allows to check it tomcat is
> > alive. Is it possibile to also check if an application is deployed
> > (giving a dedicated URL in the application context)? Thank
> > you,Giuseppe
> 
> One way to do this would be to create a ROOT context which returns
> something other than 404 for all requests. Maybe return 500 status
> for
> example.
> 
> If /myapp/ isn't deployed, the ROOT web application will respond with
> 500 and mod_jk will mark the node as degraded.

Thank you Cris, I am going to try this solution.

Bye,
Giuseppe