[Tfug] !@#$% apache and virtual hosts...

Judd Pickell pickell at gmail.com
Fri Sep 7 06:35:38 MST 2007


I believe it is merely informing you that you have nothing defined for
if they hit your server without those two domain names. Since you are
using name based Virtual Host instead of IP virtual hosts, the server
knows you can still be accessed by the IP and it doesn't know what to
do if that happens. just setup the *:80 to be the first domain. That
way whomever hits your server sees the root site (the htdocs/) and the
message will go away.

On 9/6/07, Christopher Robbins <robbinsc at gmail.com> wrote:
> As you can tell by the headline, I'm a bit annoyed...
>
> Working on setting up apache with virtual hosts...I've followed the docs,
> but it's getting....weird.  When
> I start up apache, here's what I get -
>
> ml61:/etc/apache2 # /etc/init.d/apache2 restart
> Module "fastcgi" is not installed, ignoring.
> Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
> [Thu Sep 06 16:23:57 2007] [warn] NameVirtualHost *:80 has no VirtualHosts
> Syntax OK
> Starting httpd2 (prefork) [Thu Sep 06 16:23:57 2007] [warn] NameVirtualHost
> *:80 has no VirtualHosts
>                                                                       done
> WTF?  Where the hell does this -
>
> [warn] NameVirtualHost *:80 has no VirtualHosts
>
> come from?  I don't have that set anywhere in httpd.conf or listen.conf.
> I'm a bit at my wits end here.
>
> Here's the tail of my httpd.conf -
>
> <VirtualHost ml61.english.arizona.edu>
>   DocumentRoot /srv/www/htdocs
>   ServerName ml61.english.arizona.edu
> </VirtualHost>
>
> <VirtualHost sawp.ml61.english.arizona.edu>
>   DocumentRoot /srv/www/htdocs/sawp
>   ServerName sawp.english.arizona.edu
> </VirtualHost>
>
> Thoughts?  Ideas?  I'll owe you many thanks...Or perhaps a cold beer
> at the next happy hour.  :)
>
>   - Chris
> --
> Chris Robbins
> Systems Programmer
> Department of English - University of Arizona
> http://www.homerengineeringcorp.net
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>




More information about the tfug mailing list