httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] 2 vhosts with same file names - Apache only uses one file
Date Fri, 01 Dec 2006 10:08:29 GMT
Hello,

On 11/30/06, Earl, Robert(IT) <Earl.R@emssatcom.com> 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@gmail.com
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message