tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Tomcat+apache on name_based virtual hosts
Date Thu, 04 Mar 2010 09:35:35 GMT
On 04/03/2010 04:01, chenll wrote:
> 
> Note: both a.university.com and b.university.com are built on Apache instead of Tomcat,
so they are not in the directory of webapps. just "a.university.com/webap" is pointed to the
web application which is built on Tomcat.

Please start a new thread.


p

>> From: Chuck.Caldarale@unisys.com
>> To: users@tomcat.apache.org
>> Date: Wed, 3 Mar 2010 12:17:47 -0600
>> Subject: RE: Tomcat+apache on name_based virtual hosts
>>
>>> From: Jordan Michaels [mailto:jordan@viviotech.net]
>>> Subject: Re: Tomcat+apache on name_based virtual hosts
>>>
>>> You can do this by creating new<Host>  and<Context>  entries in the
>>> server.xml file for each site.
>>
>> Please don't suggest putting<Context>  elements in server.xml; that's ancient,
dismal practice. Place the<Context>  elements in conf/Catalina/[host]/ROOT.xml, with
a docBase attribute pointing to the location of the .war file or directory.
>>
>>> <Host name="a.university.com" appBase="webapps"
>>> unpackWARs="true" autoDeploy="true"
>>> xmlValidation="false" xmlNamespaceAware="false">
>>> <Context path="" docBase="[PATH TO WEBAPP]" />
>>> </Host>
>>> <Host name="b.university.com" appBase="webapps"
>>> unpackWARs="true" autoDeploy="true"
>>> xmlValidation="false" xmlNamespaceAware="false">
>>> <Context path="" docBase="[PATH TO WEBAPP]" />
>>> </Host>
>>
>> Having the same appBase for multiple<Host>  elements is asking for trouble,
since the two hosts will scribble on top of each other.
>>
>> - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL
and is thus for use only by the intended recipient. If you received this in error, please
contact the sender and delete the e-mail and its attachments from all computers.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>   		 	   		
> _________________________________________________________________
> MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
> http://kaba.msn.com.cn/?k=1


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message