Re: LocationMatch inside VirtualHost? [solved: bug]

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

 



On Tue, Apr 14, 2009 at 12:19 PM, Viaduct Productions
<lists@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Sure.  I'll make it dead simple for you: Why does this happen?
>
> sh-3.2# apachectl -S
> [Tue Apr 14 04:53:49 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> *:80                   is a NameVirtualHost
>         default server gam (/private/etc/apache2/users/rich.conf:31)
>         port 80 namevhost gam (/private/etc/apache2/users/rich.conf:31)
>         port 80 namevhost localtest
> (/private/etc/apache2/users/rich.conf:55)
>         port 80 namevhost vp (/private/etc/apache2/users/rich.conf:63)
>         port 80 namevhost if (/private/etc/apache2/users/rich.conf:75)
>         port 80 namevhost hq (/private/etc/apache2/users/rich.conf:87)
>         port 80 namevhost hco (/private/etc/apache2/users/rich.conf:95)
>         port 80 namevhost gam (/private/etc/apache2/users/rich.conf:31)
>         port 80 namevhost localtest
> (/private/etc/apache2/users/rich.conf:55)
>         port 80 namevhost vp (/private/etc/apache2/users/rich.conf:63)
>         port 80 namevhost if (/private/etc/apache2/users/rich.conf:75)
>         port 80 namevhost hq (/private/etc/apache2/users/rich.conf:87)
>         port 80 namevhost hco (/private/etc/apache2/users/rich.conf:95)
> Syntax OK
>
> Observation (again, making it dead simple for you):
> 1.  no virtualhosts
> 2.  13 virtualhosts
> 3.  Syntax OK
>
> So 0 == 13.  Also, 0 == 13 is "OK".

It happens because "rich.conf" is included twice. Find out why this is
happening and your problem will be solved. Inspect all "include"
statements in all your config files.

I do see one way in which the output to httpd -S might be improved
however. The message:
 [warn] NameVirtualHost *:80 has no VirtualHosts
would be more usefull if it came with a reference to config file name
and line number.

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