httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Beraru Liviu <>
Subject Re: [users@httpd] how to set up virtual hosts
Date Sun, 04 Feb 2007 20:58:12 GMT
Yes, I did. Here it is:
  # Virtual hosts
Include conf/extra/httpd-vhosts.conf

Joshua Slive <> wrote:
  On 2/4/07, Beraru Liviu 
> I have a problem:
> I created two virtual hosts: one named localhost, and one named
> There are two folders in which I put the files, one named localhost and one
> maerchen.
> Here is the code in the httpd-vhosts.conf:
> ServerName localhost
> DocumentRoot C:/Programme/xampp/htdocs/localhost
> ServerName
> DocumentRoot C:/Programme/xampp/htdocs/maerchen
> But when I type in the browsers adress I get the same
> result as when I type http://localhost namely the content of the "localhost"
> folder, as if I would have typed http://localhost

That is approximately the right config.

But you mention putting it in httpd-vhost.conf. Did you Include that
config in httpd.conf?


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

Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
View raw message