iis 7 setup to use dns cnames

Posted on 2009-12-18
Last Modified: 2012-05-08
We're running iis 7 on a server 2008 let's call it

We have several cnames set up in our dns that all point to, call them web1, web2, etc.

I have an application on called web1 which I can access by going to, but I would like to use the cname so I can access it via

I've tried to do this by creating a site called web1, but it objects by saying that I cannot have more than one site with a binding to port 80.  I don't want to make users do, so is there a way I can have multiple sites on one server all looking at port 80 (or port 443).

Question by:dspace
    LVL 9

    Assisted Solution


    You have to add host alias to resolve this issue. Do the following steps:

    * Right Click on website -> Edit Bindings -> Click on Add -> Select IP address -> Port 80 -> Host Name:

    * Right Click on website -> Edit Bindings -> Click on Add -> Select IP address -> Port 80 -> Host Name:

    Now you can use Single IP on every website.

    LVL 17

    Accepted Solution

    You cannot have the IP, port and host header/binding the same. Hence why you are getting the message.

    Like tanujchandna said you can setup multiple binding per site.

    Or setup multiple sites if that is what you need and have different IP/binding info in one site. Your IP and port will be the same. :)


    Author Closing Comment

    I could only get it to work by setting up multiple sites.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now