httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <supp...@gej-it.com>
Subject RE: [users@httpd] Virtual hosts on localhost
Date Thu, 19 Jun 2003 03:41:35 GMT
Sure you can.
Just make sure you have the following config:
For NameVH:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot c:/apache/htdocs
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName 127.0.0.1
DocumentRoot c:/apache/htdocs
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName machine
DocumentRoot c:/apache/htdocs
</VirtualHost>

in order to use as many names as you want as shown in the 3rd Vhost, you
must edit your c:\windows\hosts. file to contain the line: (no limitations
for amount of names you can use)

127.0.0.1 machine anothername andanotherone onemore

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Thilo Muller [mailto:thilo@worldonline.co.za]
> Sent: Wednesday, June 18, 2003 4:53 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Virtual hosts on localhost
> 
> Hi,
> 
> I would like to set up two or more virtual hosts on my local machine
> (Win98). I have tried various setting in the conf file but to no avail.
> 
> My first question is --- Is it possible to setup vh on 127.0.0.1?
> 
> If so what cofiguration do I use since I have tried a number of
> configuration but without luck?
> 
> Thanks,
> Thilo
> 
> 
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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