I have a hunch that you're serving one of these out of the default "webapps"
directory.

If so, read on:

remove the "default" context -- put nothing under "webapps".

Then make separate document base contexts for each (like
"firstdomainwebapps" and "seconddomainwebapps") and configure these in
server.xml or whatever the TC 4 equivalent is.

Also make sure they're configured in apache, and you're good to go.

The problem (that I had) is that if there's anything in the default context
when you're using virtual hosts, it will always serve the stuff from that
context instead of the virtual host stuff.

cheers
fillup


On 5/24/02 1:05 PM, "" <> wrote:

> I am porting from apache 1.3.14 + tomcat 2.3.x to
> Apache2(SSL-enabled) + Tomcat4. On my old server,
> which runs on RH 7.1 Linux, I am able to use virtual
> hosts successfully.
> 
> If I type http://www.myFirstDomain.com/Foo/index.jsp,
> where Foo is a JSP context on that domain, but when I
> type http://www.mySecondDomain.com/Foo/index.jsp I
> will not be able to connect to that Context, which is
> what I want. However, when I did the same with the new
> setup, i.e. with Apache2+Tomcat4 nothing works. I can
> access Foo from both domain names. Why this is not
> working?
> 
> I would appreciate it if someone could give me a hand.
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> --
> 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