No, this is not the proper way to do it, is like this:

NameVirtualHost 111.222.333.444

<VirtualHost 111.222.333.444>
     serverna,me www.yourdomain.com
     serveralias yourdomain.com
     ApJServMount /*.jsp //localhost:8007
     DocumentRoot /....
     etc etc...>
<Host 111.222.333.444>

Server.xml:

  <hostname www.yourdomain.com
    <contextpath......./>
   />
----- Original Message -----
From: "Jeff Kilbride" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 24, 2001 6:06 PM
Subject: Re: Setting up Virtual Hosts


> Yes:
>
> NameVirtualHost 111.222.333.444
>
> <VirtualHost www.mydomain.com>
>
> server.xml:
> <Host www.mydomain.com>
>
> This is how I have it set up and it works for about 10 domains.
>
> --jeff
>
>
> > From: Glen Eustace <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Wed, 23 May 2001 05:28:13 GMT
> > To: [EMAIL PROTECTED]
> > Subject: Re: Setting up Virtual Hosts
> >
> >> Apache:
> >> <VirtualHost www.mydomain.com>
> >
> >> server.xml:
> >> <Host www.mydomain.com>
> >
> >> In your config, you're using an IP in the Apache VirtualHost directive
> > and a
> >> hostname in your server.xml config. I have a feeling that may be
causing
> >> your problems. Try changing your Apache config to use the host name in
> > the
> >> VirtualHost directive, rather than the IPAddress and see if that makes
a
> >> difference.
> >
> > Jeff, can you please confirm that you have the following directive (
with
> > a different IP number of course )
> >
> > NameVirtualHost 210.55.214.169
> >
> > in your apache config, and that you have multiple hosts using that same
> > IP number, and that these hosts are the same ones in you tomcat
> > server.xml config. My experimentation would still suggest that tomcat is
> > not doing named virtual hosts.
> >
> > Glen.
> >
>

Reply via email to