Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Setting up different sites instead of using //localhost

Posted on 2006-06-28
4
Medium Priority
?
161 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
[X]
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
4 Comments
 
LVL 13

Accepted Solution

by:
rhickmott earned 160 total points
ID: 17007664
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
ID: 17007666
Sorry last one should be

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
With the evolution of technology, we have finally reached a point where it is possible to have home automation features like having your thermostat turn up and door lock itself when you leave, as well as a complete home security system. This is a st…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

598 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