httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Matzura ...@noisynotes.com>
Subject [users@httpd] Problem with httpd.conf
Date Thu, 06 Nov 2014 15:43:38 GMT
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


Mime
View raw message