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] LocationMatch inside VirtualHost? [solved: bug]
Date Wed, 15 Apr 2009 06:54:14 GMT
On Tue, Apr 14, 2009 at 12:19 PM, Viaduct Productions
<lists@viaduct-productions.com> 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@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