httpd-users mailing list archives

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

On 11/30/06, Earl, Robert(IT) <> 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
>       localhost
> In my httpd.conf I set up
> DocumentRoot C:/home/http/empsupport
> ServerName  localhost

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


Bremgarten b. Bern, Switzerland

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message