IIS7 中的通配符子域.是否有可能让它们像在 Apache 中一样? [英] Wildcard subdomains in IIS7. Is it possible to make them like it is in Apache?

查看:27
本文介绍了IIS7 中的通配符子域.是否有可能让它们像在 Apache 中一样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 IIS7 配置为实现与 Apache 在通配符域方面相同的功能?我对基于 URL 中使用的子域用户在 ASP.NET Web 应用程序中路由用户感兴趣.

Is this possible to configure IIS7 to achieve the same functionality like Apache has regarding wildcard domains? I'm interested in routing user in ASP.NET web application based on subdomain user used in URL.

此处描述了类似的内容:

Something like is described here:

http://steinsoft.net/index.php?site=programming/文章/apachewildcarddomain

谢谢

推荐答案

答案是否定的,IIS7(仍然)不支持通配符主机名(参见 this).如果您想在一个网站上提供多个域服务,目前唯一的解决方法是使用专用 IP 并使用支持通配符的 DNS.

The answer is No, IIS7 (still) does not support wildcard hostnames (see this). If you want to serve multiple domain on one website, the only workaround for now, as notandy suggested, is using a dedicated IP and doing it with DNS, which does support wildcards.

为了完整起见,IIS8 也没有这个功能.

For completeness, IIS8 does not yet have this feature either.

最后,Windows 2016 中的 IIS 10 支持通配符子域.

Finally, IIS 10 in Windows 2016 supports wildcard subdomains.

这篇关于IIS7 中的通配符子域.是否有可能让它们像在 Apache 中一样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆