httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <li...@jaqui-greenlees.net>
Subject Re: [users@httpd] About: NameVirtualHost ... has no VirtualHosts
Date Sun, 05 Apr 2009 16:18:28 GMT
Eric Covener wrote:
> On Sun, Apr 5, 2009 at 10:58 AM, Developer <dev002@pas-world.com> wrote:
>   
>> Hello,
>> I have config file like this:
>>
>> ...
>>     
>>>         Listen [fec0::40]:80
>>>         NameVirtualHost myhost.com:80.
>>>         <VirtualHost myhost.com:80 >
>>>                 ServerName  myhost.com.
>>> ...
>>> </VirtualHost>
>>>       
>
> httpd/apachectl/apache2ctl -S would probably show you that either NVH
> and VH don't match exactly, or you have duplicate NVH'es.
>
>   
I have found that NameVirtualHost foo.com:80 causes this error message.
if you have NameVirtualHost *:80 the error goes away.
Then specify the host name in the vhost container as has been done.


I tried specifying the name in the NameVirtualHost for 3 domains.
[ one entry per domain, naturally. ] It was only by using the *.:80 in
the NameVirtualHost directive, and only having the one NameVirtualHost
for multiple vhosts that the error went away.

Jaqui



---------------------------------------------------------------------
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