Problem with httpd.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux