VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0 ???

VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0 ???

am 21.10.2004 09:52:35 von fritz-bayer

Hi,

I'm trying to bind apache to 127.0.0.1 80. I have managed this on my
local lan. Now I have a dedicated server and there I tried it as well.
Strangely it does not work. I get the following error messages:

[Thu Oct 21 09:39:57 2004] [warn] module mod_jk.c is already added,
skipping
[Thu Oct 21 09:39:57 2004] [warn] VirtualHost 127.0.0.1:0 overlaps
with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you
need a NameVirtualHost directive
[Thu Oct 21 09:39:57 2004] [warn] VirtualHost 127.0.0.1:0 overlaps
with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you
need a NameVirtualHost directive
[Thu Oct 21 09:39:57 2004] [warn] VirtualHost 127.0.0.1:0 overlaps
with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you
need a NameVirtualHost directive
[Thu Oct 21 09:39:57 2004] [warn] VirtualHost 127.0.0.1:0 overlaps
with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you
need a NameVirtualHost directive

Here are the important sections of my config file. I use a "Listen"
directive to bind to 127.0.0.1 and then I used virtual ip based
hosting:

# /etc/apache/http.conf
....
ServerName domainname.de
....
Listen 127.0.0.1:80
....

ServerName www.domainname.de
DocumentRoot /var/www/domainname/



ServerName test.domainname.de

JkMount /* ajp13




ServerName jboss4.domainname.de

JkMount /* ajp13




ServerName www.domain-name.de
DocumentRoot /var/www/domain-name/



ServerName www.another-hosted-domaintest.de
DocumentRoot /var/www/vaterschaftstest/

Re: VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0 ???

am 21.10.2004 10:14:16 von Davide Bianchi

> [Thu Oct 21 09:39:57 2004] [warn] VirtualHost 127.0.0.1:0 overlaps
> with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you
> need a NameVirtualHost directive

:0 ? You binded the VHost to port 0?

> # /etc/apache/http.conf
> ServerName domainname.de

You miss the "NameVirtualHost" directive, just as the error message
said.

>
>

Wrong. Do not mix name and ip. Since you're not interested in none
of them. Just use *.

Davide

--
We are not gentle tolerant people. We like drastically
effective solutions.
--Steve VanDevender

Re: VirtualHost 127.0.0.1:0 overlaps with VirtualHost 127.0.0.1:0 ???

am 21.10.2004 21:36:04 von fritz-bayer

Davide Bianchi wrote in message news:...
> > [Thu Oct 21 09:39:57 2004] [warn] VirtualHost 127.0.0.1:0 overlaps
> > with VirtualHost 127.0.0.1:0, the first has precedence, perhaps you
> > need a NameVirtualHost directive
>
> :0 ? You binded the VHost to port 0?
>
> > # /etc/apache/http.conf
> > ServerName domainname.de
>
> You miss the "NameVirtualHost" directive, just as the error message
> said.
>
> >
> >
>
> Wrong. Do not mix name and ip. Since you're not interested in none
> of them. Just use *.
>
> Davide


Sorry that's actually a typo. The "" is
not in the config file. However, I still get the same error message...