tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject How to setup webapp specific parameter for virtual host in Tomcat?
Date Wed, 02 Mar 2011 12:50:09 GMT

Hi everybody,
I would like to have this setup in Tomcat:

1. virtual host
2. webapp resides directly in ROOT and is autoDeployed
3. I need to pass some specific webapp parameter in Tomcat configuration (outside war)

1st I have this scenario:

<Host name="" appBase="vhosts/" unpackWARs="true" autoDeploy="true">

and ROOT.war in directory $CATALINA_BASE/vhosts/

-> everything works fine

2nd now I try to add the context parameter

<Host name="" appBase="vhosts/" unpackWARs="true" autoDeploy="true">
<Context docBase="/" reloadable="true">
<Parameter name="serverRole" value="dev" override="true"/>

-> app is no more accessible by (404)

-> I also tried to move the Context from Host to separate ROOT.xml file residing in $CATALINA_BASE/conf/Catalina/
but with no success

Actually I don't know what to set for path or docBase, but it seems that I am lost.

With kind regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message