Wildcard subdomains in IIS7. Is it possible to make them like it is in Apache?

前端 未结 6 935
情话喂你
情话喂你 2020-12-02 10:11

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 b

6条回答
  •  孤街浪徒
    2020-12-02 10:29

    Update 2: Link is broken, upgrade to IIS 10, it supports wildcards now.

    UPDATE: This works for a while, after a while I became bombarded by multiple requests coming through. I would not recommend this method.

    Make sure that your DNS records are setup correctly (CNAME record of *->@) and it will work flawlessly. Tested with multiple domains.

    Link is broken now used to be http://pzxc.com/apache-style-wildcard-hostname-rewrite-rules-in-iis

提交回复
热议问题