Click to See Complete Forum and Search --> : [SOLVED] error when starting apache


nephish
04-08-2007, 06:51 AM
hello,

when i start apache, i am getting an error, a warning.

NameVirtualHost *:0 has no VirtualHosts

i am using one ip address to serve a few web pages and most of the files in my /etc/apache2/sites-enabled directory look like the one below.



<VirtualHost *>
SetEnv RAILS_ENV production
ServerName www.mysite.com
DocumentRoot /var/www/mysite/public

<Directory /var/www/pivotrac/public/>
Options ExecCGI FollowSymLinks
AddHandler fcgid-script .fcgi
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]
AllowOverride None
</Directory>
ServerSignature On
# ErrorDocument 500 /500.html
ErrorLog /var/log/apache2/mysite/error.log
CustomLog /var/log/apache2/mysite/access.log combined
LogLevel warn
</VirtualHost>

my server works ok, it does not seem to have a problem serving any of the sites.
my question is, should i do anything about this ?

thanks

Glennzo
04-08-2007, 10:18 AM
I googled the phrase NameVirtualHost *:0 has no VirtualHosts and got a bunch of hits. Here's one that looked promising. http://www.issociate.de/board/post/242057/NameVirtualHost_xxx:0_has_no_VirtualHosts.html

nephish
04-08-2007, 10:28 AM
yup, that helped,
thanks

Glennzo
04-08-2007, 10:47 AM
Did it fix your problem? My reference to google was not one of these 'why didn't you google it', dummy' things. Sometimes we overlook the obvious and need someone to say 'hey, here's what I found on google'.

nephish
04-08-2007, 11:08 AM
no, no, the guy in that link had a similar problem.
mine was fixed easier than his.
just did not need the declaration for the NameVirtualHost in the top of each
<VirtualHost> file.

thanks