You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Sander van Zoest <sa...@covalent.net> on 2000/11/28 01:44:54 UTC
[OT] Re: Proxy adding headers
On Mon, 27 Nov 2000, Dave Rolsky wrote:
> On Mon, 27 Nov 2000, Sander van Zoest wrote:
> > Normally the mod_proxy code doesn't touch the headers, it simply sends
> > the headers on from the remote server you are proxying too. I doubt
> > it is mod_rewrite but it could be. The extra headers are probably coming
> > from your remote server you are proxying to.
> I don't think so. If I do a telnet to the proxy server (port 80, no
> mod_perl) I get the extra headers. If I telnet to the mod_perl enabled
> server (port 12345), I get what I want (no extra headers).
Ah, are you trying to send ICY headers or something? mod_proxy only knows
of HTTP and sends the appropriate status itself rather then what it
gets from the remote server. This will also require some hacks in
mod_proxy to make it aware of the protocol you are trying to proxy.
Cheers,
--
Sander van Zoest [sander@covalent.net]
Covalent Technologies, Inc. http://www.covalent.net/
(415) 536-5218 http://www.vanzoest.com/sander/
Re: [OT] Re: Proxy adding headers
Posted by Dave Rolsky <au...@urth.org>.
On Mon, 27 Nov 2000, Sander van Zoest wrote:
> Ah, are you trying to send ICY headers or something? mod_proxy only knows
> of HTTP and sends the appropriate status itself rather then what it
> gets from the remote server. This will also require some hacks in
> mod_proxy to make it aware of the protocol you are trying to proxy.
That is the exact problem. Ok, the chances of me hacking mod_proxy are
next to nil. At least now I know what I can't do to fix the problem
though ;)
-dave
/*==================
www.urth.org
We await the New Sun
==================*/
Re: [OT] Re: Proxy adding headers
Posted by Dave Rolsky <au...@urth.org>.
On Mon, 27 Nov 2000, Sander van Zoest wrote:
> Ah, are you trying to send ICY headers or something? mod_proxy only knows
> of HTTP and sends the appropriate status itself rather then what it
> gets from the remote server. This will also require some hacks in
> mod_proxy to make it aware of the protocol you are trying to proxy.
Well, I guess C is easier than I thought. I got it working via a new
config directive for mod_proxy, ProxyAddHeaders. By default its true and
this means that mod_proxy will add minimal headers for wack responses from
the proxy server (like HTTP 0.9 or ICY or whatever). However, if you turn
it off it will _not_ add these headers. There is a bug in the current
state of the code in that if the caching code is called, it will add a
Date header if none exists. I'm currently working around this by turning
off caching.
I'm going to see if there is interest in the Apache core team in having
this submitted as a patch. Is so, I'll work around the remaining bug.
In the meantime, if anybody on this list is interested I can send you my
current patch, which is against 1.3.12. Its not many lines so porting it
to a different Apache version should be trivial.
-dave
/*==================
www.urth.org
We await the New Sun
==================*/