IIS Server - Catchalls and host headers.

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > June 2005 > Catchalls and host headers.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Catchalls and host headers.
J1C

2005-06-15, 6:10 pm

In IIS 5.0 I could have >1 catchall host header however in IIS 6.0 when
I try and set one up it will not let me use a catchall host header. Is
there some way to change this?

Kristofer Gafvert [MVP]

2005-06-15, 6:10 pm

How can you have more than one catchall? I thought the meaning of
"catchall" was to catch all. So if you have more than one catchall, your
catchalls are not catching all.

No, you cannot use a wildcard in the host header, and this is true for
both IIS 5.0 and IIS 6.0.

--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


J1C wrote:

> In IIS 5.0 I could have >1 catchall host header however in IIS 6.0 when
> I try and set one up it will not let me use a catchall host header. Is
> there some way to change this?

J1C

2005-06-15, 6:10 pm

More that one domain ...

*.domain1.com
*.domain2.com

This does work in IIS 5.0 as I have it configured that way now.

J1C

2005-06-15, 6:10 pm

This would be for two sites too, btw.

website 1:
*.domain1.com - 192.168.5.10

website 2:
*.domain2.com - 192.168.5.10

John Cesta

2005-06-15, 6:10 pm

On 15 Jun 2005 07:57:56 -0700, "J1C" <just1coder@yahoo.ca> wrote:


>More that one domain ...
>
>*.domain1.com
>*.domain2.com


Where do you place this?

John Cesta

The CPU Checker - Monitors your CPU % while you sleep
LogFileManager - IIS LogFile Management Tool
WebPageChecker - Helps Maintain Server UpTime
DomainReportIt PRO - Helps Rebuild IIS
http://www.serverautomationtools.com
>
>This does work in IIS 5.0 as I have it configured that way now.


J1C

2005-06-15, 6:10 pm

In the host header name value ...

Bernard Cheah [MVP]

2005-06-16, 7:52 am

Well, I don't think the GUI allow you to specify *.domain.com

I can catch all for a particular domain with 1 IP address, the trick is with
* DNS record point to that IP address.


--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


"J1C" <just1coder@yahoo.ca> wrote in message
news:1118848525.077116.134240@g43g2000cwa.googlegroups.com...
> In the host header name value ...
>



J1C

2005-06-16, 7:52 am

IIS 5.0 you can ... I have it setup that way now ... it's working just
fine...

The thing is I want to have more than one catchall domain on a single
IP address.

Bernard Cheah [MVP]

2005-06-16, 5:52 pm

Ok. I can set *.domain.com with IIS 5.
Now, I would like you to try this.

C:\Inetpub\AdminScripts>adsutil.vbs set w3svc/1/serverbindings
":80:*.abc.com"
serverbindings : (LIST) ":80:*.abc.com"

this will set *.abc.com for all unassigned on port 80 for site 1

test it out and update us the result.


--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


"J1C" <just1coder@yahoo.ca> wrote in message
news:1118926649.731898.214090@o13g2000cwo.googlegroups.com...
> IIS 5.0 you can ... I have it setup that way now ... it's working just
> fine...
>
> The thing is I want to have more than one catchall domain on a single
> IP address.
>



Kristofer Gafvert [MVP]

2005-06-16, 5:52 pm

And the wildcard actually works as well? Or can you just set it in the GUI?

I was (up until now) 100% sure that it was not working on IIS 5.0.

It can however be done with ISAPI filters, or other ways.

--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


Bernard Cheah [MVP] wrote:

> Ok. I can set *.domain.com with IIS 5.
> Now, I would like you to try this.
>
> C:\Inetpub\AdminScripts>adsutil.vbs set w3svc/1/serverbindings
> ":80:*.abc.com"
> serverbindings : (LIST) ":80:*.abc.com"
>
> this will set *.abc.com for all unassigned on port 80 for site 1
>
> test it out and update us the result.

Bernard Cheah [MVP]

2005-06-17, 2:52 am

haha.! that's why I ask the OP to test. he claimed he has IIS5 with wildcard
host header working fine.
IIS5.1 and IIS6 GUI doens't allow you to specify * as the header value. but
you can do it via adsutil or metabase tools

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


"Kristofer Gafvert [MVP]" <kgafvert@NEWSilopia.com> wrote in message
news:xn0e3kveb1s44hm00b@news.microsoft.com...[vbcol=seagreen]
> And the wildcard actually works as well? Or can you just set it in the
> GUI?
>
> I was (up until now) 100% sure that it was not working on IIS 5.0.
>
> It can however be done with ISAPI filters, or other ways.
>
> --
> Regards,
> Kristofer Gafvert (IIS MVP)
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> Bernard Cheah [MVP] wrote:
>


Kristofer Gafvert [MVP]

2005-06-17, 7:58 am

I installed Windows 2000 (with SP4) and IIS 5.0 and tested this. I can now
say for sure that it does _not_ work with a wildcard. Yes, you can write
*.domain.com in the GUI, but if you send the host header www.domain.com
IIS will reply with

"No web site is configured at this address."

The only host header you can send is "*.domain.com", where * does _not_
indicate a wildcard, but the character *.

So the OP must be wrong. This did not work in IIS 5.0, and it does not
work in IIS 5.1 nor IIS 6.0, as i have already said.



--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


Bernard Cheah [MVP] wrote:

> haha.! that's why I ask the OP to test. he claimed he has IIS5 with

wildcard
> host header working fine.
> IIS5.1 and IIS6 GUI doens't allow you to specify * as the header value.

but
> you can do it via adsutil or metabase tools

Bernard Cheah [MVP]

2005-06-17, 7:58 am

Cool. I was lazy to test.

I will double confirm and do the test later. Cheers.

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


"Kristofer Gafvert [MVP]" <kgafvert@NEWSilopia.com> wrote in message
news:xn0e3lqiv2h53mw00d@news.microsoft.com...[vbcol=seagreen]
>I installed Windows 2000 (with SP4) and IIS 5.0 and tested this. I can now
>say for sure that it does _not_ work with a wildcard. Yes, you can write
>*.domain.com in the GUI, but if you send the host header www.domain.com IIS
>will reply with
>
> "No web site is configured at this address."
>
> The only host header you can send is "*.domain.com", where * does _not_
> indicate a wildcard, but the character *.
>
> So the OP must be wrong. This did not work in IIS 5.0, and it does not
> work in IIS 5.1 nor IIS 6.0, as i have already said.
>
>
>
> --
> Regards,
> Kristofer Gafvert (IIS MVP)
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> Bernard Cheah [MVP] wrote:
>
> wildcard
> but


J1C

2005-06-22, 5:57 pm

Sorry... I'm not making this up ... it is working ....

I have more than one domain using *.domainname.com as the catchall...
www.domainname.com works fine as does krisg.domainname.com

J1C

2005-06-22, 5:57 pm

Sorry, I guess the final question is how can I setup IIS 6.0 to use 1
IP with >1 catchall domain?

Kristofer Gafvert [MVP]

2005-06-23, 7:51 am

And you are not having any custom built code that is doing this? For
example an ISAPI filter?

This is actually set up in the IIS Manager, and the ServerBindings
property is:

123.123.123.123:80:*.domain1.com

What i can find out, this is not a feature of IIS 5.0.


--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


J1C wrote:

> Sorry... I'm not making this up ... it is working ....
>
> I have more than one domain using *.domainname.com as the catchall...
> www.domainname.com works fine as does krisg.domainname.com

Bernard Cheah [MVP]

2005-06-25, 2:48 am

I will go with Kristofer comment. I can repro your claim

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


"J1C" <just1coder@yahoo.ca> wrote in message
news:1119468702.987640.224800@g47g2000cwa.googlegroups.com...
> Sorry, I guess the final question is how can I setup IIS 6.0 to use 1
> IP with >1 catchall domain?
>



Bernard Cheah [MVP]

2005-06-26, 2:47 am

I mean't I can't. sorry

--
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


"Bernard Cheah [MVP]" <qbernard@hotmail.com.discuss> wrote in message
news:%2318N3KUeFHA.2700@tk2msftngp13.phx.gbl...
>I will go with Kristofer comment. I can repro your claim
>
> --
> Regards,
> Bernard Cheah
> http://www.microsoft.com/iis/
> http://www.iiswebcastseries.com/
> http://www.msmvps.com/bernard/
>
>
> "J1C" <just1coder@yahoo.ca> wrote in message
> news:1119468702.987640.224800@g47g2000cwa.googlegroups.com...
>
>



J1C

2005-06-28, 5:54 pm

No ISAPI filter ...

There is a custom ASP in each site the detect the requested domain and
displays the relavent data...

Yes, in the Internet Services Manager there are 5 sites all using the
same local IP NAT'd to the same public IP all with catchall hostnames.

All are working.

Is there a dump of a log or something I could paste to illustrate this?

Kristofer Gafvert [MVP] wrote:[vbcol=seagreen]
> And you are not having any custom built code that is doing this? For
> example an ISAPI filter?
>
> This is actually set up in the IIS Manager, and the ServerBindings
> property is:
>
> 123.123.123.123:80:*.domain1.com
>
> What i can find out, this is not a feature of IIS 5.0.
>
>
> --
> Regards,
> Kristofer Gafvert (IIS MVP)
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> J1C wrote:
>

J1C

2005-06-28, 5:54 pm

My apologies guys - it looks like the code was handling ALL redirection
- even though IIS did allow me to put in the *.domain.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com