Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Apache 2.0.48 Virtualhost with Tomcat

Lenny Sorey

2003-12-17



I have two Apache 2.0.48 / Tomcat 4.1.29 where I have
both servers running with JK/2 connector.

The server is a W2K server (No IIS)

I can bring up both local Tomcat sites respectively with the following:

http://localhost/thegoodsite

and

http://localhost/therealgoodsite



Both websites will share the same IP address.

My webapp are located in the following directories

D:\java\Tomcat41\webapps\thegoodsite

D:\java\Tomcat41\webapps\therealgoodsite

My question is how do I define the DocumentRoot
reference in each VirtualHost section and do I need to reference
JKMOUNT for each VirtualHost?

I don't have any html's in Apache. Nothing but all jsp's
in Tomcat webapps

Thanks in advance for your help.

Lenny Sorey




NameVirtualHost 172.20.30.40

<VirtualHost 172.20.30.40>

DocumentRoot /www/example1
ServerName www.thegoodsite.com

</VirtualHost>

<VirtualHost 172.20.30.40>

DocumentRoot /www/example2
ServerName www.therealgoodsite.com

</VirtualHost>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.