httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Matzura>
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, 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>
ServerAlias *
DocumentRoot /webfiles-root/www/

<VirtualHost *:80>
ServerAlias *
DocumentRoot /webfiles-root/www/

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message