I have the following in my sites-enabled:
#
# Example.com (/etc/apache2/sites-available/adityaherlambang.com)
#
<VirtualHost *:80>
ServerAdmin webmaster@adityaherlambang.com
ServerName www.adityaherlambang.com
ServerAlias adityaherlambang.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/adityaherlambang.com/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /var/www/adityaherlambang.com/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /var/www/adityaherlambang.com/logs/error.log
CustomLog /var/www/adityaherlambang.com/logs/access.log combined
</VirtualHost>
In my virtual.conf I have:
# We're running multiple virtual hosts.
#
NameVirtualHost *:80
I was just following the tutorial here. Why is it that now when I restart my server I am getting:
* Restarting web server apache2 [Sun Aug 14 04:35:30 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sun Aug 14 04:35:30 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting .......[Sun Aug 14 04:35:42 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sun Aug 14 04:35:42 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
My etc hosts looks like:
#127.0.0.1 localhost
127.0.0.1.:80 adityaherlambang.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/hostsis... well, polite words fail me. I'll go with "wrong", at the risk of understating the problem too much. – womble Aug 14 '11 at 4:46