Setting up different sites instead of using //localhost

Posted on 2006-06-28
Last Modified: 2010-04-13

This is a followup to my question here:

So I installed an old copy of Win2000 Server.

Now i'd like to use a unique url to access each of the sites i'm working on, instead of accessing them thru local host. Eg: //jasonzsite/ -> where jasonzsite is what formerly used to be localhost, or - > where is what used to earlier be //localhost

How do I do this "Virtual WebSites" stuff as mentioned in my earlier questions accepted answer?

Thank You
Question by:jasonmzs
  • 2
LVL 13

Accepted Solution

rhickmott earned 40 total points
ID: 17007664
NameVirtualHost *


<VirtualHost *>
      # Use Main Settings as Default
      HostnameLookups On


<VirtualHost *>
     ServerAlias *
     DocumentRoot C:/www/site

<VirtualHost *:80 *:286>
     ServerAlias *
     DocumentRoot c:/www/site2

What you have to remeber is that all traffic including http://localhost/ coming to the servers IP will get handles by the first rule. The site will only direct traffic to the other 2 if it sees a valid request in a browser for etc so if its a development machine you will need to edit the hosts file and set these to point to yourself otherwise it will try to visit them directly on the internet.
LVL 13

Expert Comment

ID: 17007666
Sorry last one should be

<VirtualHost *>
     ServerAlias *
     DocumentRoot c:/www/site2

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NT Print server: Should be able to print? 1 619
win2k service packs 5 662
VBScript not processed at Windows 8.1 logon 2 8,035
Corrupted W2K  serverregistry 2 160
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Enabling the Skype for Business Meeting Scheduler in Hybrid OWA
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question