tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mailinglists@returnpath.net" <mailingli...@returnpath.net>
Subject Re: Tomcat Directory and Virtual Host problem????
Date Tue, 20 Feb 2001 19:32:58 GMT
Need to know what module connector your are using (mod_jserv or mod_jk)?


----- Original Message ----- 
From: "Jim" <jim_pku@yahoo.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, February 20, 2001 1:31 PM
Subject: Tomcat Directory and Virtual Host problem????


> I use Apache 1.3 and Tomcat 3.1 to set up the
> webserver on my pc
> (windows 2000 professional).
> I want to host sever sites on the sever (such as
> www.barand1.com and
> www.brand2.com),  and it seems that
> virtual hosts work well with Apache.
> 
> But the virtual hosts does not work well with Tomcat.
> 
> When I put the jokes.jsp file into /root directory, 
> it works fines
> (http://www.brand1.com/jokes.jsp)
> But when I put the file jokes.jsp into /root/brand1
> directory, it does
> not work (file not found)...
> (also http://www.brand1.com/jokes.jsp)
> 
> what is wrong with my configuration?
> 
> I have add the followings codes to the file
> tomcat.conf :
> 
> <VirtualHost 181.**.**.**>
> ServerName www.brand1.com
> ApJServMount default /root/brand1
> ApJServMount /examples
> ajpv12://localhost:8007/examples
> </VirtualHost>
> 
> <VirtualHost 181.**.**.**>
> ServerName www.brand2.com
> ApJServMount default /root/brand2
> ApJServMount /examples
> ajpv12://localhost:8007/examples
> </VirtualHost>
> 
> 
> I also add the following codes to the file server.xml
> file
>          <Host name="www.brand1.com" >
>            <Context path=""
>                     docBase="webapps/ROOT/brand1" />
>            <Context path="/examples"
>                     docBase="webapps/ROOT/brand1" />
>         </Host>
>         <Host name="www.brand2.com" >
>            <Context path=""
>                     docBase="webapps/ROOT/brand2" />
>            <Context path="/cem2000"
>                     docBase="webapps/ROOT/brand2" />
>         </Host>
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 
> 
> 


Mime
View raw message