NameVirtualHost x.x.x.x:0 has no VirtualHosts pr0
Post Page Rank

I’m trying to run a couple virtual hosts for the moment, and when I restart httpd, I get this error:

Starting httpd: [Fri Feb 28 00:25:23 2003] [warn] NameVirtualHost x.x.x.x:0 has no VirtualHosts

here is a clip of the bottom of my httpd.conf:

NameVirtualHost *

<VirtualHost *>
ServerName www.vampylestat.dyndns.org
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *>
ServerName webmin.vampylestat.dyndns.org
DocumentRoot /var/www/webmin/html
</VirtualHost>

I’ve tried it out and I can access both websites, but I’d still like to resolve the error I get!

Also, could I get webmin to work as a virtual host, rather than a webserver running on port 10000? I know you can configure webmin to run on port 80, but I would think that would conflict with apache :eek: . Reason I’d like it on port 80 is because of the firewall rules setup at my college.

 

My apologies, I’m running RH8.0.

I just tried commenting it like you said:

#NameVirtualHost *

<VirtualHost *>
ServerName www.vampylestat.dyndns.org
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *>
ServerName webmin.vampylestat.dyndns.org
DocumentRoot /var/www/webmin/html
</VirtualHost>

restarted, but I still get the same error?

 

I fixed it! All I did was replace the * to all my virtual hosts with my external IP (same IP as the NameVirtualHost I found a few lines above), and it removed the error.

 


Incoming Links (via Tecnorati):
Nothing Reported

Tags: ,