Re: PRoblem with virtual host setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 13, 2009 at 9:59 PM, Dan Yamins <dyamins@xxxxxxxxx> 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@xxxxxxxxx
krist@xxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux