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 name. <Service name="Catalina"> <Connector port="80" address="123.123.123.123" maxHttpHeaderSize="8192" maxPostSize="15728640" maxThreads="300" minSpareThreads="150" maxSpareThreads="300"/> <Connector port="8009" enableLookups="false" redirectPort="443" protocol="AJP/1.3" address="127.0.0.1"/> <Connector port="443" address="123.123.123.123" 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" resourceName="UserDatabase"/> <Host name="localhost" appBase="/data/apps" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" reloadable="true" crossContext="true" debug="1" docBase="/data/apps/App1" /> </Host> <!-- This Host is the first "Virtual Host": fss.secondApp.com --> <Host name="fss.secondApp.com" appBase="/data/apps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>fss.secondApp.com</Alias> <Context path="" reloadable="true" crossContext="true" debug="1" docBase="/data/apps/services/App2" /> </Host> </Engine> </Service> and following is the xml files that i created in conf/catalina/www.secondApp.com/ROOT.xml <?xml version='1.0' encoding='utf-8'?> <Context displayName="fss.secondApp.com" docBase="/data/apps/App2" path="" workDir="work/Catalina/fss.secondApp.com/_"> </Context> I am able to run the first application App1 with https://123.123.123.123/ but with these setting i m not able to access my application App2 like https://www.secondApp.com/ but if I do https://123.123.123.123/App2, 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: http://www.nabble.com/how-to-make-more-than-one-web-applications-run-without-context-root-name-on-tomcat-%28Virtual-hosting%29-tp22156656p22156656.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org