IIS中的服务器别名 [英] Server Alias in IIS
问题描述
我想在IIS 7.5中创建等效的Apache Server Alias条目.有人知道该怎么做吗?
I would like to create the equivalent of Apache Server Alias entries in IIS 7.5. Anyone know how to do this?
推荐答案
如果我正确理解Apache的服务器别名,那么您正在寻找的是虚拟目录.在IIS管理器中,右键单击网站或文件夹,然后选择添加虚拟目录".然后,您可以使用特定别名(将构成Url的一部分)和物理路径(可以位于磁盘上的任何位置,而不必位于网站的根文件夹下)向网站添加目录.
If I understand Apache's Server Aliases correctly, then what you're looking for is a Virtual Directory. In IIS manager, right-click a website or folder and select "Add Virtual Directory." You can then add a directory to the website with a specific alias (which will form part of the Url) and physical path (which can be anywhere on disk, not necessarily under the root folder of the website).
编辑:怀疑我混淆了Apache的别名"和服务器别名"功能:您可能正在寻找IIS站点的绑定",该站点允许将多个域名映射到特定的Web应用程序.
suspecting that I've confused Apache's "alias" and "server alias" functions: you may be looking for an IIS site's "Bindings", which allow multiple domain names to be mapped to specific web applications.
这篇关于IIS中的服务器别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!