Link to home
Start Free TrialLog in
Avatar of raisonu
raisonu

asked on

How to use Different port and map DNS name against a website in IIS6.0

I have a IIS server with three websites running on it. All three websites are using three different ports and we have only one IP address on server. I want to give a unique Name to each website. i know it can be done by creating a DNS record for each website. Please explain  how and what needs to be done.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


One thing to bear in mind here is that DNS doesn't deal in Ports. So you couldn't link "www.yourdomain.com" directly to "1.2.3.4:81".

However, that really isn't necessary.

Each site can run on the same IP Address provided they aren't HTTPS (SSL). You would use Host Headers for this, as long as each has a unique name it'll be happy sharing the port.

To set a Host Header in IIS, open up the admin console, then the Properties for the Web Site. On the Web Site page you should see an Advanced button, select that and you have the opportunity to add an Identity.

To allow it to share a port each website must have a name in the Host Header Value (e.g. www.yourdomain.com). A blank name is the equivalent of every other non-specific name.

You can add as many names as you want to each web site (as many as necessary).

I hope that makes sense!

Chris
ASKER CERTIFIED SOLUTION
Avatar of Bertling
Bertling
Flag of United Kingdom of Great Britain and Northern Ireland 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
Avatar of raisonu
raisonu

ASKER

Thanks Bertling.
It is working.
Avatar of raisonu

ASKER

Thnaks.

Mapping the websites with different IPs is working.