"*:80 has no VirtualHosts" --- again
I have an up-to-date Lenny running in a linode virtual server
(http://linode.com). Here's what I have installed apache2-wise:
ii apache2-doc 2.2.9-10+lenny8 Apache
HTTP Server documentation
ii apache2-mpm-worker 2.2.9-10+lenny8 Apache
HTTP Server - high speed threaded mod
ii apache2-utils 2.2.9-10+lenny8 utility
programs for webservers
ii apache2.2-common 2.2.9-10+lenny8 Apache
HTTP Server common files
Per the Subject: line, here's the console message from init.d for a
'restart' of apache2:
/etc/init.d# ./apache2 restart
Restarting web server: apache2[Thu Aug 26 20:09:37 2010] [warn]
NameVirtualHost *:80 has no VirtualHosts
... waiting .[Thu Aug 26 20:09:39 2010] [warn] NameVirtualHost *:80
has no VirtualHosts
The message is repeated (I think) for the start and stop implied in 'restart.'
I am running an amended 'default' in /etc/apache2/sites-available. It
seems to list two VirtualHosts, but what do I know? <g> Here's what it
looks like (the first VirtualHost stanza is the distro's verbatim
other than -- of course -- ServerName and DocumentRoot.):
<snip>
NameVirtualHost my.dot.ted.ip.num:80
<VirtualHost my.dot.ted.ip.num:80>
ServerName domain1.org
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost my.dot.ted.ip.num:80>
ServerName subdomain.domain2.org
DocumentRoot /home/bob/public_html/subdomain
<Directory /home/bob/public_html/subdomain>
Options Indexes +ExecCGI FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
</snip>
Much thanks if anyone can eyeball this and detect any snafu's!
--
No no no, my fish's name is Eric, Eric the fish. He's an halibut. I am
not a looney! Why should I be tarred with the epithet looney merely
because I have a pet halibut?
Reply to: