----- Original Message ----- From: "Sathish Vadhiyar" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Tuesday, September 02, 2008 11:51 AM
Subject: help with virtual hosting



Hi,

I have tried various solutions regarding virtual hosts in tomcat and none
of them work.

I have in my server.xml:
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps"
      unpackWARs="true" autoDeploy="true"
      xmlValidation="false" xmlNamespaceAware="false">

Under my webapps directory, I have vh1 directory

I have vh1.com in my DNS.
So, when I type http://v1.com, it is opening the project corresponding to
webapps/vh1.

Now, I have webapps/vh2-apps corresponding to 2nd virtual host. I also
have vh2.com in DNS corresponding to the same machine.

What should I do in order to get http://vh2.com open the corresponding web
page?

Thanks,
Sathish

This is covered really well in your tomcat docs
http://localhost:8080/tomcat-docs/virtual-hosting-howto.html

or try this...

http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to