Virtual domains

Posted on 2002-04-24
Last Modified: 2010-08-05
I have 1 server and 1 ip address and two completely different websites I would like to host from this server. Each site will have its own domain name. Is there a way i could redirect the browser to the proper website based on the domain name the browser is trying to access? If so, what would be the best way of doing this?

Question by:liebrand
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
  • 3
  • 2

Expert Comment

ID: 6967834
Of course it's possible. The best way is configure your web server for using virtual hosts. Which werver do you use? Apache?

Expert Comment

ID: 6967976
Ya it is possbile to use the Name based Virtual hosts

like this

this is the best example if there is problem ask me

LVL 15

Author Comment

ID: 6968743
Its a Windows 2000 server running IIS5.
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.


Accepted Solution

harwantgrewal earned 100 total points
ID: 6968778
In IIS you can add also

Goto internet information services in the administratative tools

right click on the computer name then new add a web site in the host headder add the name like and complete all the information so yuo will have the site with configure the DNS or hosts file to reflect the name you will see and new website


LVL 15

Author Comment

ID: 6970491

Your solutions sounds good. But I created a new website and added the host header like you mentioned. I then went into my hosts file and put this

When trying to access the page locally, i get a "HTTP 403.1 Forbidden: Execute Access Forbidden
Internet Information Services

You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed."

What next?
LVL 15

Author Comment

ID: 6974436
I figured out the problem was simply permissions, but your solution got me to where I want to go. I have tested it internally and it works. I am going to be putting it out on the net, so hopefully I will have the same success.


Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

726 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