httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Matzura ...@noisynotes.com>
Subject Re: [users@httpd] Problem with httpd.conf
Date Thu, 06 Nov 2014 16:21:59 GMT
Once again, domains and addresses are obfuscated. 'xxx' refers to the
actual node name of the system about which we're talking. Here you go:

[Thu Nov 06 16:11:08 2014] [warn] NameVirtualHost *:80 has no
VirtualHosts
VirtualHost configuration:
[2001:4b98:dc0:41:216:3eff:fe18:db3b]:80 domain1.com
(/etc/apache2/sites-enabled/001-domain1.com:1)
100.200.100.200:80        domain1.com
(/etc/apache2/sites-enabled/001-domain1.com:1)
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server www.domain1.com (/etc/apache2/httpd.conf:2)
         port 80 namevhost www.domain1.com (/etc/apache2/httpd.conf:2)
         port 80 namevhost www.domain2.com (/etc/apache2/httpd.conf:7)
         port 80 namevhost xxx.domain1.com
(/etc/apache2/sites-enabled/000-default:1)
Syntax OK

On Thu, 06 Nov 2014 09:57:34 -0600, you wrote:

>try this to test your virtual host config.
>
>#apache2ctl -S
>
>On 11/06/2014 09:43 AM, Steve Matzura wrote:
>> When restarting the server with 'apache2ctl restart', or when using
>> the -t option to check the syntax of files, I get the following after
>> the current date-and-time stamp:
>>
>> [warn] NameVirtualHost *:80 has no VirtualHosts
>>
>> Before I added anything to httpd.conf, it was empty--a 0-length
>> file--which I know is not the normal state of things, based on what I
>> found after installing Apache on a new test-bed system, so things in
>> the production-side httpd.conf may be broken--I fully understand that.
>> According to the documentation at
>> http://httpd.apache.org/docs/2.2/vhosts/name-based.html, the following
>> is what I put into httpd.conf to define a primary served domain
>> (domain1) and add a second one (domain2). I also looked at the freshly
>> created copy of httpd.conf and saw nothing in it to define the primary
>> server with the exception of a name and document root directive, which
>> further adds to my confoundment.
>>
>> # Actual domain names obfuscated for purposes of this post.
>>
>> NameVirtualHost *:80
>> <VirtualHost *:80>
>> ServerName www.domain1.com
>> ServerAlias domain1.com *.domain1.com
>> DocumentRoot /webfiles-root/www/domain1.com
>> </VirtualHost>
>>
>> <VirtualHost *:80>
>> ServerName www.domain2.com
>> ServerAlias domain2.com *.domain2.com
>> DocumentRoot /webfiles-root/www/domain2.com
>> </VirtualHost>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message