Solved

Multiple DNS names to IIS on port 80

Posted on 2000-03-20
3
471 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

726 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