VirtualHost with IIS 6

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.
PNdeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sajuksCommented:
0
Dave_DietzCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
humeniukCommented:
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 -
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/wsa_hmws_addsites.asp

Creating Multiple Sites Using Host Header Names -
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/wsa_hmws_createmultsiteshh.asp

Creating Multiple Sites Using Multiple IP Addresses -
http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/wsa_hmws_createmultsitesip.asp

You may also want to look at this Win2003/IIS 6 tutorial -
www.simongibson.com/intranet/iis6

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.
0
PNdeveloperAuthor Commented:
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.
0
sajuksCommented:
Should;ve cut and copied from the link instead of posting the link :-0. Then my answer woudl;'ve been accpeted
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.