Old IP address errors

I have a couple of errors showing up that relate to the IP address I assigned to my server during the build process. Something configuration wise clearly did not get changed when I assigned the true IP address. First error shows up in a mail message for a cron error (daily job) relating to logrotate:

[Sun Apr 04 04:02:03 2010] [warn] NameVirtualHost has no VirtualHosts

The second error is clearly related and appears in the apache error log:

[Sun Apr 04 04:02:06 2010] [warn] NameVirtualHost has no VirtualHosts

Obviously there is a reference to the old IP address someplace that needs to be fixed, but I can’t seem to find it. A little help, please.


Outside of that warning, is everything working properly?

It sounds like you may just have an extra “NameVirtualHost” line. That’d be in your Apache config… if everything else is working, you can just comment out that line and restart Apache.

Where exactly your Apache config resides depends on what distro your using, but you can start by looking in /etc/httpd/ or /etc/apache2/.


Hey Eric,

Yes, everything has been running just fine. The server has actually been production for a while now, and this issue has been on the list to look into. Just now getting around to it. :wink:

I think your assessment is correct, as I found an old NameVirtualHost reference in /etc/httpd/conf/httpd.conf

Time will tell and thanks for your help.