• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

Multiple DNS names to IIS on port 80

I have two domain names pointing at my computer now.   I'm runing IIS on port 80.

Is there any way that IIS can filter requests based on which DNS name the request comes in on?   For example, if a request came in on www.siteA.com then IIS would map the request to, say "c:\inetpub\wwwroot\siteA"  and if the request came in on www.siteB.com it would get mapped to "c:\inetpub\wwwroot\siteB\".      Requests for both names would come in on port 80.

Can an ISAPI filter do that?  
Can IIS do it from the managment console?
Can I specify a port with my domain name?
How can I make this work?
Is this possible?

Thanks,
Adam
0
aplatti
Asked:
aplatti
1 Solution
 
kaufmannmCommented:
Hi there, as far as I know the only way to do this is to use IIS's Host Header feature.  It's done as follows:

1. Setup both of your websites using the Internet Service Manager (ISM)
2. Within ISM, for siteA, go into its properties by right-clicking on it.
3. In the siteA Properties box, select the 'Web Site' tab and click on the 'Advanced' button next to the IP Address field.
4. In the 'Advanced Multiple Web Site Configuration', highlight the IP Address and click on 'Edit'.
5. Now in the 'Advanced Web Site Identification' box, you can specify a Host Header Name, which is the name of your site - in this case siteA. Do not enter www.siteA.com, just enter the domain name itself.
6. Repeat steps 2-5 for siteB.

For more info on the features and limitations of Host Headers in IIS, check out the IIS Resource Kit, or the IIS Training Kit, or search Technet...

Hope that does it for ya ;)
0
 
aplattiAuthor Commented:
will I be able to run both sites on port 80?  If not, can IIS map one of the sites to a different port when a request comes in on port 80?
0
 
DKostovCommented:
Yes, you will be able to run both sites on 80.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now