|
|
|
date: Fri, 2 Nov 2007 00:03:00 -0700,
group: microsoft.public.platformsdk.internet.server.isapi-dev
back
Re: setheader "http://localhost" does not work on 2003 server
Hi, Tiago
You are right, thank you for your detailed answer.
David wang gives me the correct answer too, as follows:
"You can certainly redirect requests to another machine on IIS6, just not
with any built-in functionality. Microsoft does not ship a
"request-forwarder" module, but it can certainly be written.
IIS6 does not support SetHeader which does not begin with /"
Many thanks to you all.
"Tiago Halm" wrote:
> Eric,
>
> Never mind what IIS5 or IIS6 do to the URL. You should set the url without
> protocol and hostname. So, for http://www.foo.com/folder/mypage.htm, the url
> header should be set to "/folder/mypage.htm" (unless you're developing an
> http proxy, but that is another story). The hostname is set at the "Host:"
> header, which is normally used when IIS has host headers set up.
>
> Creating a redirection filter is quite easy, however you need to have in
> mind that redirection only works in the AppPool you're already in. Say you
> have VDir1 in AppPool1 and VDir2 in AppPool2. Doing an filter that changes
> all requests "/VDir1/..." to "/VDir2/..." will make IIS complain that it
> cannot find the URL. So care must be taken when setting up IIS when you do
> redirection.
>
> A final note: redirection normally requires a powerful regex engine. Unless
> you buy a third-party redirection filter, or use an open source one you
> should take that into account because you won't have enough configuration
> variables to express the flexibility you'll need over time.
>
> More can be said on this matter, but I'll leave you with this for now.
>
> Tiago Halm
>
>
>
date: Tue, 6 Nov 2007 00:00:01 -0800
author: Eric Huang
|
|