Tomcat 5.0 - virtual hosts don't work
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Stefan_Hofmann
Posted On:   Friday, July 9, 2004 01:22 AM

I'm trying to configure my Tomcat 5.0 to serve several virtual hosts. In my understanding, I should address my hosts by http://localhost:6401 or http://private:6401. localhost works fine, the private doesn't. Following, you'll find my server.xml and the startup-messages from tomcat. Thanks Stefan <?xml version='1.0' encoding='utf-8'?> factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml    More>>

I'm trying to configure my Tomcat 5.0 to serve several virtual hosts. In my understanding, I should address my hosts by http://localhost:6401 or http://private:6401. localhost works fine, the private doesn't.


Following, you'll find my server.xml and the startup-messages from tomcat.


Thanks


Stefan

			
<?xml version='1.0' encoding='utf-8'?>








factory
org.apache.catalina.users.MemoryUserDatabaseFactory


pathname
conf/tomcat-users.xml


























09.07.2004 10:10:40 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 6401
09.07.2004 10:10:40 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1893 ms
09.07.2004 10:10:41 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
09.07.2004 10:10:41 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
09.07.2004 10:10:41 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
09.07.2004 10:10:41 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
09.07.2004 10:10:41 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostadmin.xml
09.07.2004 10:10:42 org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
09.07.2004 10:10:42 org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
09.07.2004 10:10:44 org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
09.07.2004 10:10:46 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhost alancer.xml
09.07.2004 10:10:46 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhost eans.xml
09.07.2004 10:10:46 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostgeturl.xml
09.07.2004 10:10:46 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/geturl]
09.07.2004 10:10:46 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostjsp-examples.xml
09.07.2004 10:10:47 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostjsp.xml
09.07.2004 10:10:47 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostmanager.xml
09.07.2004 10:10:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostmyapp.xml
09.07.2004 10:10:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostmyEJBExample.xml
09.07.2004 10:10:48 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myEJBExample]
09.07.2004 10:10:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostmytest.xml
09.07.2004 10:10:48 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mytest]
09.07.2004 10:10:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhost
avigation.xml
09.07.2004 10:10:48 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/navi]
09.07.2004 10:10:48 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostROOT.xml
09.07.2004 10:10:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostservlets-examples.xml
09.07.2004 10:10:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostsession.xml
09.07.2004 10:10:49 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/session]
09.07.2004 10:10:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhost omcat-docs.xml
09.07.2004 10:10:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhosturlroot.xml
09.07.2004 10:10:49 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/urlroot]
09.07.2004 10:10:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinalocalhostwhoIs.xml
09.07.2004 10:10:49 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
09.07.2004 10:10:49 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
09.07.2004 10:10:49 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivateadmin.xml
09.07.2004 10:10:50 org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
09.07.2004 10:10:50 org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
09.07.2004 10:10:50 org.apache.struts.util.PropertyMessageResources
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
09.07.2004 10:10:51 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivate alancer.xml
09.07.2004 10:10:51 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivate eans.xml
09.07.2004 10:10:51 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivategeturl.xml
09.07.2004 10:10:51 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[private].StandardContext[/geturl]
09.07.2004 10:10:51 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatejsp-examples.xml
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatejsp.xml
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatemanager.xml
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatemyapp.xml
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatemyEJBExample.xml
09.07.2004 10:10:52 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[private].StandardContext[/myEJBExample]
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatemytest.xml
09.07.2004 10:10:52 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[private].StandardContext[/mytest]
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivate
avigation.xml
09.07.2004 10:10:52 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[private].StandardContext[/navi]
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivateROOT.xml
09.07.2004 10:10:52 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivateservlets-examples.xml
09.07.2004 10:10:53 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatesession.xml
09.07.2004 10:10:53 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[private].StandardContext[/session]
09.07.2004 10:10:53 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivate omcat-docs.xml
09.07.2004 10:10:53 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivateurlroot.xml
09.07.2004 10:10:53 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[private].StandardContext[/urlroot]
09.07.2004 10:10:53 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:jakarta-tomcat-5.0Tomcat 5.0confCatalinaprivatewhoIs.xml
09.07.2004 10:10:53 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 6401
09.07.2004 10:10:53 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
09.07.2004 10:10:53 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=10/20 config=C:jakarta-tomcat-5.0Tomcat 5.0confjk2.properties
09.07.2004 10:10:54 org.apache.catalina.startup.Catalina start
INFO: Server startup in 13148 ms
   <<Less
About | Sitemap | Contact