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.

I am having an issue with the wild card domains. We use Windows 2003 Server.

We have created a wild card entry in the DNS settings for one of our websites. We did this as we needed to create around 20 sub domains.

We have configured the sub domains in the IIS like sub1.mydomain.com, sub2.mydomain.com etc, each of them directed to respective folders.

Lately we have observed an issue. Google has reported that we have relatively huge amount of pages (around half a million). But in real, we don't have that many pages.

We we did our home work we have identified that entering a non-existing (or non-defined) sub domains like asdfsf.mydomain.com is loading the contents of www.mydomain.com.

Our Thinking: There may be a wrong link in a sub domain, which is connecting to a folder which is available in the main domain.

In Detail: Let's imagine we have this folder, www.mydomain.com/message-board/. Due to the wrong link, user will be able to access the same page like this sub1.mydomain.com/message-board. Search engines treat this as a different page and index it and therefore the total number of pages get increased.

Now the question is, what should I do in IIS to load an error page when a user enters a non-existing sub domain? And also, is our thinking correct? Please Help!

share|improve this question
add comment

1 Answer

My guess is that IIS, like Apache, has a "default" host. This is the one rendered if you don't have an exact match.

What you could do is make certain this default is simple and only lists which names your site actually responds with, or does an actual http redirect to some site of your choice.

For example, see http://vhost.flame.org/ which is my default "wow, I don't know that name" landing page.

Be careful with wildcard DNS, it will often bite you in the arse.

share|improve this answer
    
Thanks, Michael. Can you please provide specific settings which I need to change? –  Chirans Nov 23 '09 at 9:38
    
I'm afraid not, as I do not run IIS. –  Michael Graff Nov 24 '09 at 19:08
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.