Link to home
Start Free TrialLog in
Avatar of PNdeveloper
PNdeveloper

asked on

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.
Avatar of sajuks
sajuks

ASKER CERTIFIED SOLUTION
Avatar of Dave_Dietz
Dave_Dietz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of PNdeveloper

ASKER

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.
Should;ve cut and copied from the link instead of posting the link :-0. Then my answer woudl;'ve been accpeted