httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] PRoblem with virtual host setup
Date Sun, 15 Mar 2009 11:25:28 GMT
On Fri, Mar 13, 2009 at 9:59 PM, Dan Yamins <dyamins@gmail.com> wrote:
>
> When I run apachectl -S I get:
>    [Fri Mar 13 16:56:45 2009] [warn] VirtualHost 127.0.0.1:80 overlaps with
> VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a
> NameVirtualHost directive
>    [Fri Mar 13 16:56:45 2009] [warn] NameVirtualHost *:80 has no
> VirtualHosts
>    VirtualHost configuration:
>    127.0.0.1:80           DataEnvironment
> (/private/etc/apache2/users/dad.conf:1)


So the virtualhost config that will be used for this site is the one
in the file "/private/etc/apache2/users/dad.conf"
What is in that file?

Furthermore you  have a mismatch between your "VirtualHost" statement
and your <VirtualHost> blocks.

If your NameVirtualHost statement reads:
NameVirtualHost *:80

then your <VirtualHost> blocks must all be:
<VirtualHost *:80>

You have however: <VirtualHost 127.0.0.1:80> and that apperently
twice, and apache is a tad confused about what you want. That's what
all those error messages mean.

So you either need to change your NameVirtualHost statement, or your
<VirtualHost> blocks.

The second thing you need to to is to use all lowercase hostnames,
just like everyone else in the world does. That is probably causing
all kinds of problems.

Krist


-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message