Forum Discussion

MikhailPodolski's avatar
MikhailPodolski
Brass Contributor
Oct 23, 2023

Can I host two web sites on the IIS Web Server using same ports but different domains

I have been given a task to research a possibility to host two different asp.net web sites using different domains but same ports.

 

Is that possible?

 

Thank you everyone in advance!

1 Reply

  • PasildaData's avatar
    PasildaData
    Copper Contributor
    Yes, in IIS create the web sites you need, then for each site:
    - right click the site node in the tree, click "Edit Bindings"
    - in the pop-up, edit the binding to set the host name for the site
    Note, each binding must be unique on the server - for example, you can't have two sites in IIS using the same binding details.
    Also note, you may have multiple bindings for the same site - for example you can have a binding for "http://www.domain.com" and a second binding on the same site for "domain.com"

Resources