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="/brand1"
docBase="webapps/ROOT/brand1" />
</Host>
<Host name="www.brand2.com" >
<Context path=""
docBase="webapps/ROOT/brand2" />
<Context path="/brand2"
docBase="webapps/ROOT/brand2" />
</Host>



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to