Re: Virtual Hosts Problem - Many hours - No Luck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. Get your Hotmail® account now.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux