IIS equivalent of VirtualHost in Apache

六眼飞鱼酱① 提交于 2019-11-28 09:10:35

You want to use Host Headers in IIS - that link will lead to a nice how-to page.

As rob_g suggested, if you already have a website running (eg. default website) you can also select 'Edit bindings' on the website and specify a hostname.

Create a new virtual host:

iis manager --> (local computer) --> right-click Web Sites --> New --> Web Site

Check/change/add hostname information (the other hostname to recognize) on a virtual host:

iis manager --> (local computer) --> Web Sites --> right-click/properties on one of the sites --> Web Site --> Advanced --> "Multiple identities for this Web site"

In IIS 7, you will add in Bindings on the right side Actions column, Edit Site while the desired Site is selected.

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