Bluehost.com Web Hosting $6.95

Help with Apache 2.0.49 on Windows XP Professional

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


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2004
Peter Loh
 
Posts: n/a
Default Help with Apache 2.0.49 on Windows XP Professional

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
  #2 (permalink)  
Old 06-25-2004
Thor Kottelin
 
Posts: n/a
Default Re: Help with Apache 2.0.49 on Windows XP Professional



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/
  #3 (permalink)  
Old 06-25-2004
Bill Davidson
 
Posts: n/a
Default Re: Help with Apache 2.0.49 on Windows XP Professional

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
  #4 (permalink)  
Old 06-26-2004
Peter Loh
 
Posts: n/a
Default Re: Help with Apache 2.0.49 on Windows XP Professional

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0