look for the alias directive in the hosts documentation

<Alias>www.host2.net</Alias>




Samsamoddin Rajaei wrote:
> Hi everybody,
> 
> I use linux-apache2 and tomcat 5.0.28 and have the following problem. I have 
> a configuration like:
> 
> 
> 
>   <Service debug="9" name="NEVIS">
>     <Connector port="9010" redirectPort="8443" protocol="AJP/1.3" 
> URIEncoding="UTF-8" 
>     protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" 
> enableLookups="true" debug="9"/>
>     
>     <Engine name="NEVIS" defaultHost="host1.net" debug="9">
> 
>       <Host name="host1.net" appBase="/var/www/vhosts/host1.net/" 
>       deployXML="true" debug="9" unpackWARs="false" autoDeploy="true" 
> liveDeploy="true"/>
> 
>       <Host name="host2.net" appBase="/var/www/vhosts/host2.net/" 
>       deployXML="true" debug="9" unpackWARs="false" autoDeploy="true" 
> liveDeploy="true"/>
>       
>       <Host name="host3.net" appBase="/var/www/vhosts/host3.net/" 
>       deployXML="true" debug="9" unpackWARs="false" autoDeploy="true" 
> liveDeploy="true"/>
> 
>       <Host name="host4.net" appBase="/var/www/vhosts/host4.net/"
>       deployXML="true" debug="9" unpackWARs="false" autoDeploy="true" 
> liveDeploy="true"/>
> 
>     </Engine>
>   </Service>
> 
> Calling www.host1.net or www.host2.net or www.host3.net or www.host4.net 
> shows only www.host1.net which is defined in Engine as defaultHost. If change 
> de defaultHost to host2.net then all URLs show me the www.host2.net.
> 
> Can anybody say me what do I do wrong?
> 
> Thanks. Sam
> 


---------------------------------------------------------------------
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