httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: [users@httpd] About: NameVirtualHost ... has no VirtualHosts
Date Sun, 05 Apr 2009 15:10:47 GMT
Developer wrote:
> Hello,
> I have config file like this:
> ...
>>         Listen [fec0::40]:80
>>         NameVirtualHost
>>         <VirtualHost >
>>                 ServerName
>> ...
>> </VirtualHost>
> All work fine, but I get error message like:
>> NameVirtualHost has no VirtualHosts
> on start. is name based host accesible and works.
> I can not see the problem for this. Any suggestion?
I do not really understand the syntax you are using above, but the 
reason why it works may be as follows :

- the Listen instruction will cause Apache to listen for connections and 
requests on port 80, on the IP address you have specified (which is the 
bit that I do not really understand, since I know little about IPv6)
- the NameVirtualHost tells Apache that you want to define Virtual 
Hosts, but somehow that line and the <VirtualHost> line do not match, so 
Apache warns you.
- no matter what, Apache will have a "default host", that will handle 
all the requests which one way or another arrive on that (physical) 
host.  That is what makes you think that it works.

To see if the above is the case :
- in your local "hosts" file (Unix/Linux: /etc/hosts, Windows: 
/windows/system32/drivers/etc/hosts), add a line with the IP address of 
your host, and some funny name like ""
- in your browser (on the same system where you modified the hosts 
file), try
If it also works, then the explanation above is correct.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message