Forum Moderators: phranque

Message Too Old, No Replies

Problem with IIS and wildcarded subdomain

how do I configure IIS to point any subdomain to my index page?

         

abellard

8:39 pm on Jul 13, 2003 (gmt 0)

10+ Year Member



Does any one know how to realise this with IIS?

anysubdomain.mydomain.com

should point to

www.mydomain.com\index.htm

Is there a wildcard function in the configuration of host header names in IIS? - or any other suggestion?

thank U, Stephan.

DaveN

9:14 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[webmasterworld.com...]

Dave

abellard

10:02 am on Jul 28, 2003 (gmt 0)

10+ Year Member



Thanks Dave but this is not really what I wanted...
My DNS is working well, anything.mydomain.com is resolved in the same IP.
I want this to happen:

anysubdomain.mydomain.com
should point to
www.mydomain.com\index.htm (Webserver Standard Directory)

Is there a wildcard function in the configuration of host header names in IIS? - or any other suggestion?

thank U, Stephan.

Stretch

11:40 am on Jul 28, 2003 (gmt 0)

10+ Year Member



Hi abellard and welcome to webmasterworld [webmasterworld.com]!

I don't understand the difference in what you are saying:

My DNS is working well, anything.mydomain.com is resolved in the same IP.
I want this to happen:
anysubdomain.mydomain.com
should point to
www.mydomain.com\index.htm (Webserver Standard Directory)

anything.mydomain.com is exactly the same as anysubdomain.mydomain.com which means wildcard dns is working for you. So perhaps you mean you want to specify the subdomains route to index.htm as oppose to your default document?

If this is the case, I don't think wildcard host headers work in IIS but you might try setting up a new site with a blank host header on a seperate IP and directing your subdomains to that.

Cheers

Stretch

abellard

12:04 pm on Jul 28, 2003 (gmt 0)

10+ Year Member



yes,wildcard dns is working for me.

>>So perhaps you mean you want to specify the subdomains >>route to index.htm as oppose to your default document?
any subdomain should route to the same default document of the www.mydomain.com

>>..blank host header on a seperate IP and directing your >>subdomains to that.
the blanc host header works but causes another problem.
there are other domains on the server and if you misstype a subdomain of this second domain you will land on the first domain.

ex:
xyz.domain1.com -> www.domain1.com with empty hostheader. OK
x23.domain1.com -> www.domain1.com with empty hostheader. OK
x34.domain1.com -> www.domain1.com with empty hostheader. OK

www.domain2.com -> www.domain1.com with empty hostheader. NOK
mabe I'll need a different(own) IP for my Wildcarded thing..

cheers

Stretch

12:29 pm on Jul 28, 2003 (gmt 0)

10+ Year Member



Exactly, you would need a separate IP for this to work without potential conflicts across domains.

Cheers

Stretch