Solved

Setting up different sites instead of using //localhost

Posted on 2006-06-28
4
154 Views
Last Modified: 2010-04-13
Hi,

This is a followup to my question here:
http://www.experts-exchange.com/Operating_Systems/WinXP/Q_21878153.html

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 www.clienta.com - > where www.clienta.com 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
0
Comment
Question by:jasonmzs
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
rhickmott earned 40 total points
Comment Utility
NameVirtualHost *

## DEFAULT SITE

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

## VIRTUAL SITES

<VirtualHost *>
     ServerName www.site1.com
     ServerAlias site1.com *.site1.com
     DocumentRoot C:/www/site
</VirtualHost>

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




What you have to remeber is that all traffic including http://localhost/ http://127.0.0.1/ 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 http://www.site1.com/ 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.
0
 
LVL 13

Expert Comment

by:rhickmott
Comment Utility
Sorry last one should be

<VirtualHost *>
     ServerName www.site2.com
     ServerAlias site2.com *.site2.com
     DocumentRoot c:/www/site2
</VirtualHost>
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now