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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtualise server 2000 for Hyper V 4 864
Remote Desktop Software 6 467
Application Deployment 2 272
WMI Uptime Script Reporting Incorrect Number on W2k Server 16 793
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…
Determining the an SCCM package name from the Package ID
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 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