Thanks, Jim.  I assume you have something similar to an index.html in 
each document root?

I actually tried using the NameVirtualHost *, but it didn't change a 
thing.  Apache still served the first virtual host (and poorly at that) 
in the list.

Someone has suggested to use 127.0.0.1:80, and that serves up the 
index.html at the common document root (G:/webroot/htdocs)


Jim Walls wrote:
> Joseph Morgan wrote:
>> I am having a problem configuring virtual hosts on my Apache 2.2.6
>> server. Apache ALWAYS serves up the first virtual host regardless of
>> the actual host requested.
>
> Well, that does not look close to my Virtual Hosts section of my 
> httpd.conf - excerpted here:
>
> NameVirtualHost *
>
> 
>  ServerName no.name
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
> 
>
> 
>  ServerName www.k6ccc.org
>  ServerAlias k6ccc.org *.k6ccc.org
>  DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/k6ccc.org"
> 
>
> 
>  ServerName www.thewallshouse.org
>  ServerAlias thewallshouse.org *.thewallshouse.org
>  DocumentRoot "C:/Program Files/Apache 
> Group/Apache2/htdocs/TheWallsHouse.org"
> 
>
> 
>  ServerName www.wc-phantoms.org
>  ServerAlias wc-phantoms.org *.wc-phantoms.org
>  DocumentRoot "C:/Program Files/Apache 
> Group/Apache2/htdocs/wc-phantoms.org"
> 
>
>
>
> The first is the default if someone comes in looking for the IP 
> address.  This works...
>


_________________________________________________________________
Send e-mail anywhere. No map, no compass.
http://windowslive.com/oneline/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008

Reply via email to