You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by hi...@hadv.nl on 2001/05/30 11:39:55 UTC
REPOST Please help! Virtual hosts on Tomcat4-3b
Hi,
I'm trying to run two virtual hosts on Tomcat4-3b on RH Linux 7.0. I try to give
each host a default Context (ie a Context for path="") but I keep getting the
error message:
StandardContext[]: Error initializing naming context for context
in the logs and
HTTP Status 503 - This application is not currently available
in the browser.
If I comment out one of the hosts the other works fine. I have tried to strip
server.xml down to a bare minimum, but without any success. It seems paths in
separate virtual hosts can conflict...
Any ideas??
Regards,
Wilko Hische
=== server.xml ===
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="80" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<Host name="localhost" debug="0" appBase="test">
<Context path="" docBase="examples" debug="0"
reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
</Context>
</Host>
<Host name="host2" debug="0" appBase="test2">
<Context path="" docBase="examples" debug="0"
reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
=======