This is a discussion on Help with Apache 2.0.49 on Windows XP Professional within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, I need to test multiple (more than 2) websites on my local machine. According to the Apache documentation, one ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I need to test multiple (more than 2) websites on my local machine. According to the Apache documentation, one solution to this is to use name-based virtual hosting. The instructions for this are pretty clear. I am just wondering how do I configure Windows to map an additional name like localhost2 to 127.0.0.1? The desired result is that both http://localhost and http://localhost2 will map to 127.0.0.1, after which the virtual hosting mechanism will take over. Many thanks for any advice. Peter |
|
|||
|
Peter Loh wrote: > how do I configure Windows to map an > additional name like localhost2 to 127.0.0.1? Add it to your name server or hosts file. Thor -- http://www.anta.net/ |
|
|||
|
Thor Kottelin wrote:
> Add it to your name server or hosts file. A lot of people don't know how to do that. In Windows XP, the hosts file is here: C:\WINDOWS\system32\drivers\etc\hosts In the file, he'll want: 127.0.0.1 localhost localhost2 Or, if he wants to use different IP's: 127.0.0.1 localhost 127.0.0.2 localhost2 --Bill Davidson |
|
|||
|
Bill Davidson <billdav@cox.nospam.net> wrote in message news:<0mZCc.1$876.0@fed1read07>...
> Thor Kottelin wrote: > > Add it to your name server or hosts file. > > A lot of people don't know how to do that. > > In Windows XP, the hosts file is here: > > C:\WINDOWS\system32\drivers\etc\hosts > > In the file, he'll want: > > 127.0.0.1 localhost localhost2 > > Or, if he wants to use different IP's: > > 127.0.0.1 localhost > 127.0.0.2 localhost2 > > --Bill Davidson Thanks for your help Bill! Peter |