You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Thilo Muller <th...@worldonline.co.za> on 2003/06/18 22:53:00 UTC
[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
Re: [users@httpd] Virtual hosts on localhost
Posted by Thilo Muller <th...@worldonline.co.za>.
Thanks Jeff, The secret was in the hosts file.
Regards,
Thilo
Jeff Cohen wrote:
>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
>
>
>
>
---------------------------------------------------------------------
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
RE: [users@httpd] Virtual hosts on localhost
Posted by Jeff Cohen <su...@gej-it.com>.
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
AW: [users@httpd] Virtual hosts on localhost
Posted by nico hochgeschwender <ni...@gmx.de>.
yes its possible to setup vh at localhost, but i am not sure if its run
under win98....maybe you have to setup w2k and runs apache as an service...
greetings nico
-----Ursprungliche Nachricht-----
Von: Thilo Muller [mailto:thilo@worldonline.co.za]
Gesendet: Mittwoch, 18. Juni 2003 22:53
An: users@httpd.apache.org
Betreff: [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