Learn how to a build a cloud-first strategyRegister Now


VirtualHost with IIS 6

Posted on 2004-11-23
Medium Priority
Last Modified: 2008-02-26
Hi folks,

I know this is easy to do with Apache but we're stuck with IIS 6.

Is there a way to do virtual hosting with IIS6?

I have www.mycompany.com and it works fine and well,

we're registering www.mycompany.co.jp and we want this to simply remap to www.mycompany.com/jp

How can I do this?

I'd offer more points but this is all I have right now. Sorry.

Thanks in advance.
Question by:PNdeveloper
LVL 33

Expert Comment

ID: 12661711
LVL 34

Accepted Solution

Dave_Dietz earned 500 total points
ID: 12662101
Simply add another Host Header to the site (if you are using them, don't bother if you;re not) and register the domain name with the same IP address as the other site.

IIS will respond to any traffic that comes in on an IP it is assigned to if it has a Host Header for that domain name (or any if no Host Header is set).

Dave Dietz
LVL 33

Expert Comment

ID: 12662104
You can host multiple sites on IIS by using either different IP addresses, host headers, or different ports.  The third one is impractical, so it's best to leave it out.  The other two options are preferred.

Some MS articles to look at:

Adding websites to your server -

Creating Multiple Sites Using Host Header Names -

Creating Multiple Sites Using Multiple IP Addresses -

You may also want to look at this Win2003/IIS 6 tutorial -

What you would do in the example you've given in your question is create two websites in IIS, one for www.mycompany.com and one for www.mycompany.co.jp.  When you set up the second site, instead of defining the home directory as 'A directory located on this computer' or 'A share located on another computer', you can choose 'A redirection to a URL' and input http://www.mycompany.com/jp.  Make sure you also check the 'A permanent redirection for this resouce' box.

Author Comment

ID: 12662308
Thank you very much all. Host headers is exactly what I needed. Thanks a ton to Dave Dietz and humeniuk.

Given that the points are minimal I decided to give them to Dave since he answered first. Soon as I get more points, I'll send them your way humeniuk. I did in fact use your links to find more on the subject.

Thank you thank you thank you.
LVL 33

Expert Comment

ID: 12662311
Should;ve cut and copied from the link instead of posting the link :-0. Then my answer woudl;'ve been accpeted

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month20 days, 20 hours left to enroll

810 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