Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
Read here: stackoverflow.com/questions/458757/… –  Paul Jun 13 '11 at 5:17
add comment

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.

share|improve this answer
    
Hi, This does work, however, it doesn't catch multiple subdomain somehow.. ex: catches mysite.com or this.mysite.com but it doesn't catch www.this.mysite.com –  iamserious Oct 31 '12 at 17:39
1  
@iamserious, a 4th level domain functions just the same as any other domain in IIS. If it doesn't work, my guess is that the DNS entry needs to be setup. Try pinging it to ensure that it resolves to the server. The bindings will work the same no matter how many levels the FQDN has. –  Scott Forsyth - MVP Nov 4 '12 at 4:04
    
I see... Thanks for the advice, I don't really need it, it's a nice to have feature, but I'd like to get it to work with www before the subdomain eventually.. will look into it, thanks! –  iamserious Nov 5 '12 at 9:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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