Run multiple sites from one IP in IIS

拜拜、爱过 提交于 2019-11-30 00:48:01

host headers are your friend

This link might help you.

http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx

You basically are going to run your sites on different ports and the tell IIS that http:// url1 maps to the site on port 80 and http:// url2 maps to port 81

Richard

You can use the same port 80 for all the sites. It's all about the bindings. You need to bind each site to a different host name:

www.domain.com
site2.domain.com
www.anotherdomain.com

etc.

You can do this by specifying the binding when creating a site. Then make sure you have configured DNS records to point at the same IP.

You can also setup a catchall DNS entry for a domain and point it at the IP of the server, then every time you create a site you can simply pick a new subdomain name at it will work straight away.

A TCP port number, an IP address, a host header these three are used to identify incoming http call processing and since first two is common now only you need to use host header which easily possible to done by command prompt and also with user interface of IIS.

Please read this post here to know whole process step by step

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!