[Jax.PM] perl HTTP header insertion proxy
WC -Sx- Jones
lists at insecurity.org
Wed May 14 13:38:29 CDT 2003
On Wednesday, May 14, 2003, at 02:19 PM, Nate Campi wrote:
> [a jax.PM member posting]
> I have a need for a proxy that sits between a cache acting as a HTTP
> accelerator (apache mod_proxy) and a backend SSI apache site that can
> add the Content-Length header. We already have the Expires header on
> the
> origin site and will still be lacking Last-Modified but I think we'll
> be
> ok without it.
On the same server? Which version of Apache?
Why won't another mod_proxy instance help?
> Does anyone know of such a beast, or something like it? Perhaps there's
> a module that could be easily adapted.
>
> I'd tend to shy away from a full-blown mod_perl instance between the
> other two layers, too big for a small need. It seems that you could
> bust
> out a simpler standalone perl script that's easier to debug and/or
> extend later.
You can set up a reverse mirroring proxy - which is what I am thinking
you mean.
See ProxyPassReverse (to stop the client from by-passing the first
proxy) and ProxyRemote (to identify your new proxy to the caching
proxy.)
I doubt it is too much different than the caching server configs. Sort
of like a double reverse. Maybe I am confused =)
If you simply want to insert random headers into your HTTP stream, then
see
http://stein.cshl.org/~lstein/talks/WWW6/sniffer/
I have modified this to make up all sort of lies about HTTP data...
-Sx- :)
More information about the Jacksonville-pm
mailing list