tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sweta bachhety <>
Subject how to make more than one web applications run without context root name on tomcat (Virtual hosting)
Date Mon, 23 Feb 2009 07:31:48 GMT

I am trying to configure my server(tomcat 5.5.26) in a way that i can access
two applications without mentioning their context name. 

I have googled for it and done the following configuration in my server.xml 

I have two application, App1 and App2 now i want that both should run with
out context name, one i can run with ip and other wiht some virtual host

<Service name="Catalina">

<Connector port="80" address="" maxHttpHeaderSize="8192"
maxPostSize="15728640" maxThreads="300" minSpareThreads="150"

    <Connector port="8009" 
               enableLookups="false" redirectPort="443" protocol="AJP/1.3"
   <Connector port="443" address="" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" keystorePass="tomcat"/>

    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"

    <Host name="localhost" appBase="/data/apps" unpackWARs="true"
autoDeploy="false"                        xmlValidation="false"
            <Context path="" reloadable="true" crossContext="true" debug="1"
docBase="/data/apps/App1" />
     <!-- This Host is the first "Virtual Host": -->
    <Host name="" appBase="/data/apps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
	<Context path="" reloadable="true" crossContext="true" debug="1"
docBase="/data/apps/services/App2" /> 




and following is the xml files that i created in

<?xml version='1.0' encoding='utf-8'?>
<Context displayName="" docBase="/data/apps/App2" path=""

I am able to run the first application App1 with

but with these setting i m not able to access my application App2 like 

but if I do, I can see the index page

Please suggest something if any one has some idea about it....

Thanks in advance.....

View this message in context:
Sent from the Tomcat - User mailing list archive at

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

View raw message