Check the mod_jk log and make sure the www.test.net requests
are being forwarded to Tomcat.  If so, set the debug level
on <SimpleMapper1> in server.xml to "1" and examine the
Tomcat log to see how the www.test.net requests are being
handled differently from www.test.com requests.  I currently
don't see anything in your config files that would cause this
not to work.

Note that the debug attributes should be set a numeric value
rather than "info".  I would guess this would be equivalent
to setting it to zero.

Cheers,
Larry

> -----Original Message-----
> From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, June 10, 2002 12:27 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3.1/Apache Virtual Host and Alias
> 
> 
> Hi,
> 
> I've Tomcat 3.3.1 and Apache running together with mod_jk.
> 
> I'm trying to setup alias for VirtualHost in the tomcat configuration
> but it doesnot work.
> 
> * Here what i have in httpd.conf :
> 
> NameVirtualHost 192.168.1.125:80
> 
> <VirtualHost 192.168.1.125:80>
>     DocumentRoot c:/adeuza/sites/fortunoclic
>     ServerName www.test.fr
>     ErrorLog c:\tmp\apache-error-testfr.log
>     CustomLog c:\tmp\apache-access-testfr.log common
> </VirtualHost>
> 
> <VirtualHost 192.168.1.125:80>
>     DocumentRoot c:/adeuza/sites/test
>     ServerName www.test.com
>     ServerAlias www.test.net
>     ErrorLog c:\tmp\apache-error-testcom.log
>     CustomLog c:\tmp\apache-error-testcom.log common
> </VirtualHost>
> 
> * And my apps-testfr.xml 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <webapps>
>   <Host name="www.test.fr" address="192.168.1.125:80">
>     <Context path="/" 
>              docBase="c:/adeuza/sites/fortunoclic" 
>              debug="info"> 
>     </Context>  
>   </Host>
> </webapps>
> 
> * And my apps-testcom.xml
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <webapps>
>   <Host name="www.test.com" address="192.168.1.125:80">
>     <alias name="www.test.net" />
>     <Context path="/" 
>              docBase="c:/adeuza/sites/test" 
>              debug="info"> 
>     </Context>
>   </Host>
> </webapps>
> 
> 
www.test.fr and www.test.com are ok.
www.test.net can display the correct html files but it cannot find the
jsp and servlet



Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to