Forum Moderators: open

Message Too Old, No Replies

Wildcard and IIS

         

michaeleekk

2:43 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



Hi.

I have a problem about the wildcard.
Just like mail.domain.com, dns.domain.com, anything.domain.com,etc.
How can I do this with IIS?

I hope it will have a reply soon. Thank you .

digitalv

2:49 pm on Jul 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume you have "*" already set up in the DNS so "anything".yourdomain.com resolves to a certain IP address?

The only way to do what you want to do on the IIS side is to use a dedicated IP address for that site, and don't configure ANY host headers for the site. There isn't any way to have a wildcard host header setting in IIS.

michaeleekk

2:56 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



oh..
So do you have some softwares (look like IIS can do this things) I can use?
I'm windows XP user.

digitalv

3:15 pm on Jul 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why do you have to use host headers at all?

michaeleekk

12:10 am on Jul 24, 2004 (gmt 0)

10+ Year Member



I want the users type mail.domain.com, then they will go to my computer in c:\mail\index.htm, for example.
So they don't have to type [domain.com...]

Just like that.

digitalv

1:00 am on Jul 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don't need to use host headers for that. Just remove all of the host headers and make you default/home page an ASP document with this at the begining:

<%
If request.servervariables("HTTP_HOST") = "mail.domain.com" Then
response.redirect "http://www.domain.com/mail/whatever/"
End If
%>

That should accomplish what you want to do.

michaeleekk

5:58 am on Jul 24, 2004 (gmt 0)

10+ Year Member



Wonderful!

That is what I what!

Thank you!