On 26/08/2010 11:39, arnaud icard wrote:
> httpd is stopped.
> 
> Here is what I have done in the /opt/tomcat/conf/server.xml :
> 
>     /<Engine name="Catalina" defaultHost="tomcat00c">
>     ...
>             <Host name="tomcat00c"  appBase="webapps"
>                 unpackWARs="true" autoDeploy="true"
>                 xmlValidation="false" xmlNamespaceAware="false">

If the DNS records you're using are anything other than the 'name'
attribute, you'll need an Alias, to match:

 <Alias>www.example.com</Alias>


p


>                  <Valve
>     className="org.apache.catalina.valves.AccessLogValve"
>     directory="/var/log/tomcat/hosts/" 
>                    prefix="tomcat00c_access_log." suffix=".log"
>     pattern="common" resolveHosts="false"/>
>           </Host>
> 
>           <Host name="cas"  appBase="/home/tomcat/hosts/cas/webapps"
>                 unpackWARs="true" autoDeploy="true"
>                 xmlValidation="false" xmlNamespaceAware="false">
>         
>                  <Valve
>     className="org.apache.catalina.valves.AccessLogValve"
>     directory="/var/log/tomcat/hosts/" 
>                    prefix="cas_access_log." suffix=".log"
>     pattern="common" resolveHosts="false"/>
>           </Host>
> 
>           <Host name="appli1" 
>     appBase="/home/tomcat/hosts///appli1///webapps"
>                 unpackWARs="true" autoDeploy="true"
>                 xmlValidation="false" xmlNamespaceAware="false">
> 
>             <Valve className="org.apache.catalina.valves.AccessLogValve"
>     directory="/var/log/tomcat/hosts/" 
>                    prefix="//appli1//_access_log." suffix=".log"
>     pattern="common" resolveHosts="false"/>
>           </Host>
>     </Engine>/
> 
> When connecting to appli1.test.fr, I am redirected to the default ROOT
> content (which means to the tomcat00c host).
> 
> I am a little lost now in this tomcat jungle. No black smoke so far
> hopefully :)
> 
> arnaud icard a écrit le 26/08/2010 09:21:
>> Ok I will remove apache httpd and use Tomcat's virtual hosts system.
>>
>> thank you all for your response.
>>
>>
>> Caldarale, Charles R a écrit le 25/08/2010 18:31:
>>>> From: Wesley Acheson [mailto:wesley.ache...@gmail.com]
>>>> Subject: Re: How to configure different default webapp in function
>>>> of requested hostname on one tomcat server
>>>>      
>>>   
>>>> You can configure the host element as per
>>>> http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
>>>>      
>>> Also look at:
>>> http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts
>>>
>>> (Don't be scared off by the use of the word "development" in the above.)
>>>
>>>   - 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-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>    
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to