RE: 2 vhosts with same file names - Apache only uses one file

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

 



I haven't read up on what that is supposed to do but I tried it and it
worked. That's what I was missing. Thank you so very much. I am happy
now.

-----Original Message-----
From: Krist van Besien [mailto:krist.vanbesien@xxxxxxxxx] 
Sent: Friday, December 01, 2006 5:08 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  2 vhosts with same file names - Apache only
uses one file

Hello,

On 11/30/06, Earl, Robert(IT) <Earl.R@xxxxxxxxxxxxx> wrote:
> Sorry about the last post, sent by mistake.
> My config is below. What I found is if I switch the order of the
virtual
> host blocks, it will pick up the files from whichever documentroot of
> whichvever vhost is listed first.
>
> In my hosts file I set up
> 127.0.0.1       localhost
> 192.54.131.157          emp2.mydomain.com
> 192.54.131.157          emp3.mydomain.com
>
> In my httpd.conf I set up
>
> DocumentRoot C:/home/http/empsupport
> ServerName  localhost

<snip>
I'm missing the "NameVirtualHost" directive in your config, which you
need since both hosts run on the same IP.

Krist

-- 
krist.vanbesien@xxxxxxxxx
Bremgarten b. Bern, Switzerland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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