How can I create a catchall for any unspecified subdomains of website.com in IIS 7.5 on Windows Server 2008 RC2?

I have already configured a CNAME DNS entry for *.website.com pointing to website.com.

The behavior I am trying to achieve is that any subdomain of website.com, such as foidhfsio.website.com, will resolve to website.com, unless I have specifically defined another site in IIS with the requested host header.

link|improve this question

75% accept rate
Read here: stackoverflow.com/questions/458757/… – Paul Jun 13 '11 at 5:17
feedback

1 Answer

Simply leave the host header from the binding empty and it should do the trick.

IIS headers don't support wildcards per se, but if you leave the host header empty, it will catch all traffic for that IP address/port.

The more specific headers from other sites will catch first, so you can just consider this project as the default for your particular IP address.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.