NameVirtualHost

NameVirtualHost

am 19.12.2002 01:17:21 von Joseph Shraibman

I'm running Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6 mod_jk/1.2.2

I have a NameVirtualHost in my http.conf, but when I start up I get a lot of:

[warn] VirtualHost a.d1.selectacast.net:8000 overlaps with VirtualHost
b.d1.selectacast.net:8000, the first has precedence, perhaps you need a NameVirtualHost
directive

Is this a known bug?
I've tried:

NameVirtualHost *
NameVirtualHost 64.7.9.58
NameVirtualHost 64.7.9.58:8000


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: NameVirtualHost

am 19.12.2002 01:24:48 von Jeff Cohen

Hi Joseph,

When you do NameVirtualHost you can't put the same address twice, if you
want the VirtualHost to run on port 8000 with the IP address that you
specified then it should be as follows:

NameVirtualHost 64.7.9.58


.....


Or if you'd like it to run on all listening ports do:
For exp.

Listen 80
Listen 8000
Listen 8080

NameVirtualHost 64.7.9.58


.....


then the virtualhost will load on ports 80 8000 and 8080.

All the Best,

Jeff Cohen

> -----Original Message-----
> From: Joseph Shraibman [mailto:jks@selectacast.net]
> Sent: Wednesday, December 18, 2002 7:17 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] NameVirtualHost
>
> I'm running Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6
> mod_jk/1.2.2
>
> I have a NameVirtualHost in my http.conf, but when I start up I get a
lot
> of:
>
> [warn] VirtualHost a.d1.selectacast.net:8000 overlaps with
VirtualHost
> b.d1.selectacast.net:8000, the first has precedence, perhaps you need
a
> NameVirtualHost
> directive
>
> Is this a known bug?
> I've tried:
>
> NameVirtualHost *
> NameVirtualHost 64.7.9.58
> NameVirtualHost 64.7.9.58:8000
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: NameVirtualHost

am 19.12.2002 04:08:09 von Joseph Shraibman

Jeff Cohen wrote:
> Hi Joseph,
>
> When you do NameVirtualHost you can't put the same address twice,

I know, I was just giving examples of lines I have tried. I didn't try them all together.

>
>>-----Original Message-----
>>From: Joseph Shraibman [mailto:jks@selectacast.net]
>>Sent: Wednesday, December 18, 2002 7:17 PM
>>To: users@httpd.apache.org
>>Subject: [users@httpd] NameVirtualHost
>>
>>I'm running Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6
>>mod_jk/1.2.2
>>
>>I have a NameVirtualHost in my http.conf, but when I start up I get a
>
> lot
>
>>of:
>>
>> [warn] VirtualHost a.d1.selectacast.net:8000 overlaps with
>
> VirtualHost
>
>>b.d1.selectacast.net:8000, the first has precedence, perhaps you need
>
> a
>
>>NameVirtualHost
>>directive
>>
>>Is this a known bug?
>>I've tried:
>>
>>NameVirtualHost *
>>NameVirtualHost 64.7.9.58
>>NameVirtualHost 64.7.9.58:8000
>>
>>
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: NameVirtualHost

am 19.12.2002 04:45:47 von Jeff Cohen

I figured that, but did you try what I wrote to you?

> -----Original Message-----
> From: Joseph Shraibman [mailto:jks@selectacast.net]
> Sent: Wednesday, December 18, 2002 10:08 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] NameVirtualHost
>
> Jeff Cohen wrote:
> > Hi Joseph,
> >
> > When you do NameVirtualHost you can't put the same address twice,
>
> I know, I was just giving examples of lines I have tried. I didn't try
> them all together.
>
> >
> >>-----Original Message-----
> >>From: Joseph Shraibman [mailto:jks@selectacast.net]
> >>Sent: Wednesday, December 18, 2002 7:17 PM
> >>To: users@httpd.apache.org
> >>Subject: [users@httpd] NameVirtualHost
> >>
> >>I'm running Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6
> >>mod_jk/1.2.2
> >>
> >>I have a NameVirtualHost in my http.conf, but when I start up I get
a
> >
> > lot
> >
> >>of:
> >>
> >> [warn] VirtualHost a.d1.selectacast.net:8000 overlaps with
> >
> > VirtualHost
> >
> >>b.d1.selectacast.net:8000, the first has precedence, perhaps you
need
> >
> > a
> >
> >>NameVirtualHost
> >>directive
> >>
> >>Is this a known bug?
> >>I've tried:
> >>
> >>NameVirtualHost *
> >>NameVirtualHost 64.7.9.58
> >>NameVirtualHost 64.7.9.58:8000
> >>
> >>
> >
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: NameVirtualHost

am 19.12.2002 04:47:58 von Jeff Cohen

Hey Joseph,

Look again in your conf file, the error says that you have two
VirtualHosts with the same name and port.
Search it for the virtualhost name.

Jeff Cohen

> -----Original Message-----
> From: Jeff Cohen [mailto:apache@gej-it.com]
> Sent: Wednesday, December 18, 2002 10:46 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] NameVirtualHost
>
> I figured that, but did you try what I wrote to you?
>
> > -----Original Message-----
> > From: Joseph Shraibman [mailto:jks@selectacast.net]
> > Sent: Wednesday, December 18, 2002 10:08 PM
> > To: users@httpd.apache.org
> > Subject: Re: [users@httpd] NameVirtualHost
> >
> > Jeff Cohen wrote:
> > > Hi Joseph,
> > >
> > > When you do NameVirtualHost you can't put the same address twice,
> >
> > I know, I was just giving examples of lines I have tried. I didn't
try
> > them all together.
> >
> > >
> > >>-----Original Message-----
> > >>From: Joseph Shraibman [mailto:jks@selectacast.net]
> > >>Sent: Wednesday, December 18, 2002 7:17 PM
> > >>To: users@httpd.apache.org
> > >>Subject: [users@httpd] NameVirtualHost
> > >>
> > >>I'm running Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6
> > >>mod_jk/1.2.2
> > >>
> > >>I have a NameVirtualHost in my http.conf, but when I start up I
get
> a
> > >
> > > lot
> > >
> > >>of:
> > >>
> > >> [warn] VirtualHost a.d1.selectacast.net:8000 overlaps with
> > >
> > > VirtualHost
> > >
> > >>b.d1.selectacast.net:8000, the first has precedence, perhaps you
> need
> > >
> > > a
> > >
> > >>NameVirtualHost
> > >>directive
> > >>
> > >>Is this a known bug?
> > >>I've tried:
> > >>
> > >>NameVirtualHost *
> > >>NameVirtualHost 64.7.9.58
> > >>NameVirtualHost 64.7.9.58:8000
> > >>
> > >>
> > >
> >
> >
> >
------------------------------------------------------------ ---------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: NameVirtualHost

am 19.12.2002 04:57:45 von Joseph Shraibman

Jeff Cohen wrote:
> Hey Joseph,
>
> Look again in your conf file, the error says that you have two
> VirtualHosts with the same name and port.
> Search it for the virtualhost name.

The error messages I'm getting are:
[Wed Dec 18 18:56:52 2002] [warn] VirtualHost intellimail.d1.selectacast.net:8000 overlaps
with VirtualHost
bernardo.d1.selectacast.net:8000, the first has precedence, perhaps you need a
NameVirtualHost directive
[Wed Dec 18 18:56:52 2002] [warn] VirtualHost admin.d1.selectacast.net:8000 overlaps with
VirtualHost intellimail.d1.selectacast.net:8000, the first has precedence, perhaps you
need a NameVirtualHost directive
[Wed Dec 18 18:56:52 2002] [warn] VirtualHost 64.7.9.59:0 overlaps with VirtualHost
admin.d1.selectacast.net:443, the first has precedence, perhaps you need a NameVirtualHost
directive
[Wed Dec 18 18:56:52 2002] [warn] VirtualHost 64.7.9.59:443 overlaps with VirtualHost
64.7.9.59:0, the first has precedence, perhaps you need a NameVirtualHost directive
[Wed Dec 18 18:56:52 2002] [warn] VirtualHost tomcat.d1.selectacast.net:8000 overlaps with
VirtualHost admin.d1.selectacast.net:8000, the first has precedence, perhaps you need a
NameVirtualHost directive
[Wed Dec 18 18:56:52 2002] [warn] NameVirtualHost *:0 has no VirtualHosts
[Wed Dec 18 18:56:54 2002] [notice] Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6
mod_jk/1.2.2 configured -- resuming normal operations

You can tell something is out of what because of that second to last one.
These were generated when I had "NameVirtualHost *" in the conf file.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: NameVirtualHost

am 20.12.2002 06:36:46 von Jeff Cohen

> -----Original Message-----
> From: Joseph Shraibman [mailto:jks@selectacast.net]
> Sent: Wednesday, December 18, 2002 10:58 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] NameVirtualHost
>
> Jeff Cohen wrote:
> > Hey Joseph,
> >
> > Look again in your conf file, the error says that you have two
> > VirtualHosts with the same name and port.
> > Search it for the virtualhost name.
>
> The error messages I'm getting are:
> [Wed Dec 18 18:56:52 2002] [warn] VirtualHost
> intellimail.d1.selectacast.net:8000 overlaps
> with VirtualHost
> bernardo.d1.selectacast.net:8000, the first has precedence, perhaps
you
> need a
> NameVirtualHost directive
> [Wed Dec 18 18:56:52 2002] [warn] VirtualHost
> admin.d1.selectacast.net:8000 overlaps with
> VirtualHost intellimail.d1.selectacast.net:8000, the first has
precedence,
> perhaps you
> need a NameVirtualHost directive
> [Wed Dec 18 18:56:52 2002] [warn] VirtualHost 64.7.9.59:0 overlaps
with
> VirtualHost
> admin.d1.selectacast.net:443, the first has precedence, perhaps you
need a
> NameVirtualHost
> directive
> [Wed Dec 18 18:56:52 2002] [warn] VirtualHost 64.7.9.59:443 overlaps
with
> VirtualHost
> 64.7.9.59:0, the first has precedence, perhaps you need a
NameVirtualHost
> directive
> [Wed Dec 18 18:56:52 2002] [warn] VirtualHost
> tomcat.d1.selectacast.net:8000 overlaps with
> VirtualHost admin.d1.selectacast.net:8000, the first has precedence,
> perhaps you need a
> NameVirtualHost directive
> [Wed Dec 18 18:56:52 2002] [warn] NameVirtualHost *:0 has no
VirtualHosts
> [Wed Dec 18 18:56:54 2002] [notice] Apache/2.0.43 (Unix)
mod_ssl/2.0.43
> OpenSSL/0.9.6
> mod_jk/1.2.2 configured -- resuming normal operations
>
> You can tell something is out of what because of that second to last
one.
> These were generated when I had "NameVirtualHost *" in the conf file.
>
>

For this you might need to take off the port number and add it only at
the section as as follow:
Try that and tell me if it works for you. (I'm doing also something very
similar to that, but I have 5 domain names, each domain runs on
different port and also they all name-based on port 80).
I'm using 1.3.27 with 4 NameVirtualHost and it's running and as far as I
know (I haven't tried using the 2.x version, there's no much different
in the virtualhost).


Listen domain1:8000
Listen domain2:8000
Listen domain3:443
Listen ip_addrs:443

1> bernardo.d1.selectacast.net:8000
NameVirtualHost bernardo.d1.selectacast.net


2> intellimail.d1.selectacast.net:8000
NameVirtualHost intellimail.d1.selectacast.net


3> admin.d1.selectacast.net:443
NameVirtualHost admin.d1.selectacast.net


4> 64.7.9.59:443
NameVirtualHost 64.7.9.59


5> *:0 - should be deleted.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: NameVirtualHost

am 24.12.2002 00:36:49 von Joseph Shraibman

That gives me:
[Mon Dec 23 18:34:28 2002] [warn] NameVirtualHost intellimail.d1.selectacast.net:8000 has
no VirtualHosts
[Mon Dec 23 18:34:28 2002] [warn] NameVirtualHost bernardo.d1.selectacast.net:8000 has no
VirtualHosts

[Mon Dec 23 18:34:29 2002] [notice] Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6
mod_jk/1.2.2 configured -- resuming normal operations


This is with:
Listen 64.7.9.58:8000
Listen 64.7.9.58:443
Listen 64.7.9.59:8000
Listen 64.7.9.59:443



....

....
NameVirtualHost admin.d1.selectacast.net:443

....
NameVirtualHost admin.d1.selectacast.net:8000

....
NameVirtualHost intellimail.d1.selectacast.net:8000

....
NameVirtualHost bernardo.d1.selectacast.net:8000

....

Jeff Cohen wrote:
>
>>-----Original Message-----
>>From: Joseph Shraibman [mailto:jks@selectacast.net]
>>Sent: Wednesday, December 18, 2002 10:58 PM
>>To: users@httpd.apache.org
>>Subject: Re: [users@httpd] NameVirtualHost
>>
>>Jeff Cohen wrote:
>>
>>>Hey Joseph,
>>>
>>>Look again in your conf file, the error says that you have two
>>>VirtualHosts with the same name and port.
>>>Search it for the virtualhost name.
>>
>>The error messages I'm getting are:
>>[Wed Dec 18 18:56:52 2002] [warn] VirtualHost
>>intellimail.d1.selectacast.net:8000 overlaps
>>with VirtualHost
>>bernardo.d1.selectacast.net:8000, the first has precedence, perhaps
>
> you
>
>>need a
>>NameVirtualHost directive
>>[Wed Dec 18 18:56:52 2002] [warn] VirtualHost
>>admin.d1.selectacast.net:8000 overlaps with
>>VirtualHost intellimail.d1.selectacast.net:8000, the first has
>
> precedence,
>
>>perhaps you
>>need a NameVirtualHost directive
>>[Wed Dec 18 18:56:52 2002] [warn] VirtualHost 64.7.9.59:0 overlaps
>
> with
>
>>VirtualHost
>>admin.d1.selectacast.net:443, the first has precedence, perhaps you
>
> need a
>
>>NameVirtualHost
>>directive
>>[Wed Dec 18 18:56:52 2002] [warn] VirtualHost 64.7.9.59:443 overlaps
>
> with
>
>>VirtualHost
>>64.7.9.59:0, the first has precedence, perhaps you need a
>
> NameVirtualHost
>
>>directive
>>[Wed Dec 18 18:56:52 2002] [warn] VirtualHost
>>tomcat.d1.selectacast.net:8000 overlaps with
>>VirtualHost admin.d1.selectacast.net:8000, the first has precedence,
>>perhaps you need a
>>NameVirtualHost directive
>>[Wed Dec 18 18:56:52 2002] [warn] NameVirtualHost *:0 has no
>
> VirtualHosts
>
>>[Wed Dec 18 18:56:54 2002] [notice] Apache/2.0.43 (Unix)
>
> mod_ssl/2.0.43
>
>>OpenSSL/0.9.6
>>mod_jk/1.2.2 configured -- resuming normal operations
>>
>>You can tell something is out of what because of that second to last
>
> one.
>
>>These were generated when I had "NameVirtualHost *" in the conf file.
>>
>>
>
>
> For this you might need to take off the port number and add it only at
> the section as as follow:
> Try that and tell me if it works for you. (I'm doing also something very
> similar to that, but I have 5 domain names, each domain runs on
> different port and also they all name-based on port 80).
> I'm using 1.3.27 with 4 NameVirtualHost and it's running and as far as I
> know (I haven't tried using the 2.x version, there's no much different
> in the virtualhost).
>
>
> Listen domain1:8000
> Listen domain2:8000
> Listen domain3:443
> Listen ip_addrs:443
>
> 1> bernardo.d1.selectacast.net:8000
> NameVirtualHost bernardo.d1.selectacast.net
>
>
> 2> intellimail.d1.selectacast.net:8000
> NameVirtualHost intellimail.d1.selectacast.net
>
>
> 3> admin.d1.selectacast.net:443
> NameVirtualHost admin.d1.selectacast.net
>
>
> 4> 64.7.9.59:443
> NameVirtualHost 64.7.9.59
>
>
> 5> *:0 - should be deleted.
>
>


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: NameVirtualHost

am 24.12.2002 00:41:16 von Joseph Shraibman

I think part of the problem was that my domains were pointing at different ip addresses
than I thought they were. I'm fixing that now.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: NameVirtualHost

am 24.12.2002 01:17:30 von jaqui

Joseph,
as Boyle put it for both name and ip based virtual hosting on Dec 9 2002
in thread "Specific Configuration"

"There are two ways you can go - depending on whether you want to declare
many aliases for your IP in DNS...

(1) If you do not mind paying for many Domain-Names which resolve to
your IP, then:

Use Name-based VirtualHosts, like this (assume your IP = 192.168.1.1 and
your sites are called www.site1.com, www.site2.com etc..):

NameVirtualHost 192.168.1.1


ServerName www.site1.com
DocumentRoot /home/site1/html
... etc.



ServerName www.site2.com
DocumentRoot /home/site2/html
... etc.


(2) Alternatively, if you can have only one Domain Name, use Aliases to
separate the document roots, e.g. (assuming your FQDN is www.mysite.com)

Listen 192.168.1.1
ServerName www.mysite.com
DocumentRoot /home/default/html

Alias /site1 /home/site1/html

Allow from all


Alias /site2 /home/site2/html

Allow from all


Now http://www.mysite.com/site1 will go to /home/site1/html etc. NB
/home/default/html is necessary - this is where www.mysite.com ends up
(you can just put a simple page there with links to the other sites).

Rgds,

Owen Boyle"


not sure but you may not have the site name in the vh declaration ( you
didn't include it in your post )


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org