Knowledge Sharing - Want to participate in the discussion?
29 Jun
![]() |
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.
Leave a reply
You must be logged in to post a comment.