Search code examples
apacheiis-7subdomainwildcard

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


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/articles/apachewildcarddomain

Thanks


Solution

  • 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.

    2013 Update

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

    2016 Update

    Finally, IIS 10 in Windows 2016 supports wildcard subdomains.