Solved

Multiple DNS names to IIS on port 80

Posted on 2000-03-20
3
476 Views
Last Modified: 2013-12-24
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
Comment
Question by:aplatti
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
kaufmannm earned 100 total points
ID: 2646073
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
 

Author Comment

by:aplatti
ID: 2646304
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
 
LVL 2

Expert Comment

by:DKostov
ID: 2687729
Yes, you will be able to run both sites on 80.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 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