Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

IIS Host Header "Wildcards"

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS: IIS works as a gateway  
Author Message
Alex Maghen

External


Since: Feb 12, 2008
Posts: 1



(Msg. 1) Posted: Tue Feb 12, 2008 11:11 pm
Post subject: IIS Host Header "Wildcards"
Archived from groups: microsoft>public>inetserver>iis (more info?)

Let's say I'm handling two main domains X.com and Y.com from within a single
IIS server and I have two different IIS web sites created, one for X.com and
the other for Y.com. I do this by creating two IIS Web Sites and setting the
HostHeader configuration for each for its domain(s) (X.com, www.X.com, Y.com,
www.Y.com).

All of that is fine and works, no problem.

Now let's say that I want to handle wildcards in the 3rd-level domain for
each of the sites (in other words, without setting specific 3rd-level domains
for each, I want nnn.X.com to do to my X.com site and nnn.Y.com to go to my
Y.com site). Obviously I can do this by having a different IP address or port
number for the two different sites, but I *really* do not want to do that.

Is there a way to set "wildcards" in the HostHeader property for a site? I
tried *.X.com, but it doesn't like that.

Any help is much appreciated.

Alex

 >> Stay informed about: IIS Host Header "Wildcards" 
Back to top
Login to vote
"Lognoul, Marc

External


Since: Feb 05, 2008
Posts: 21



(Msg. 2) Posted: Wed Feb 13, 2008 5:28 am
Post subject: Re: IIS Host Header "Wildcards" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I am not aware of any method to perform this on IIS itself.
All you could do is tweaking the DNS records if you can.

Could an ISAPI filter do the job ?

KR,
Marc

"Alex Maghen" <AlexMaghen DeleteThis @newsgroup.nospam> wrote in message
news:AB69DBB9-429D-4769-8EDF-2B68C54B9707@microsoft.com...
> Let's say I'm handling two main domains X.com and Y.com from within a
> single
> IIS server and I have two different IIS web sites created, one for X.com
> and
> the other for Y.com. I do this by creating two IIS Web Sites and setting
> the
> HostHeader configuration for each for its domain(s) (X.com, www.X.com,
> Y.com,
> www.Y.com).
>
> All of that is fine and works, no problem.
>
> Now let's say that I want to handle wildcards in the 3rd-level domain for
> each of the sites (in other words, without setting specific 3rd-level
> domains
> for each, I want nnn.X.com to do to my X.com site and nnn.Y.com to go to
> my
> Y.com site). Obviously I can do this by having a different IP address or
> port
> number for the two different sites, but I *really* do not want to do that.
>
> Is there a way to set "wildcards" in the HostHeader property for a site? I
> tried *.X.com, but it doesn't like that.
>
> Any help is much appreciated.
>
> Alex

 >> Stay informed about: IIS Host Header "Wildcards" 
Back to top
Login to vote
WenYuan Wang [MSFT]

External


Since: Apr 03, 2007
Posts: 15



(Msg. 3) Posted: Wed Feb 13, 2008 5:28 am
Post subject: RE: IIS Host Header "Wildcards" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Alex,

I agree with Marc. This is a common issue. But I'm afraid to say IIS
doesn't support Wildcards Host Header.
The magic here is not with IIS but DNS. Alternative way is to use something
like ISAPI-Rewrite to redirect request.

Hope this helps. Let me know if there is anything unclear. We are glad to
assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 >> Stay informed about: IIS Host Header "Wildcards" 
Back to top
Login to vote
Ken Conner

External


Since: Feb 19, 2008
Posts: 1



(Msg. 4) Posted: Tue Feb 19, 2008 8:27 pm
Post subject: RE: IIS Host Header "Wildcards" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

How would you solve this using dns? Assuming the whole reason you are
running host headers is because you are using a single IP?

if a.com is ip 123.123.123.123 and b.com is on same IP and you are using
host headers to control traffic, how can you use dns to alter the web address?



"WenYuan Wang [MSFT]" wrote:

> Hello Alex,
>
> I agree with Marc. This is a common issue. But I'm afraid to say IIS
> doesn't support Wildcards Host Header.
> The magic here is not with IIS but DNS. Alternative way is to use something
> like ISAPI-Rewrite to redirect request.
>
> Hope this helps. Let me know if there is anything unclear. We are glad to
> assist you.
>
> Have a great day,
> Best regards,
>
> Wen Yuan
> Microsoft Online Community Support
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
 >> Stay informed about: IIS Host Header "Wildcards" 
Back to top
Login to vote
Wen Yuan Wang [MSFT]

External


Since: Feb 20, 2008
Posts: 1



(Msg. 5) Posted: Wed Feb 20, 2008 11:25 am
Post subject: RE: IIS Host Header "Wildcards" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Ken,
Thanks for you reply. I think my reply may have misled you. I'm sorry for
that.

What I mean is that DNS support Wildcard DNS Record. But, IIS doesn't. I
didn't mean we can resolve Wildcards Hostname by DNS only.

One way to resolve this issue is to have a different IP address or port
number for the different sites, just as what Alex said in his initial post.
Another way to is using something like ISAPI-Rewrite or your own logic to
redirect the request to correct website.

Have a great day
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 >> Stay informed about: IIS Host Header "Wildcards" 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]