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