Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [PATCH] Reverse Proxy HTTP Hooks

From: Graham Leggett <minfrin(at)sharp.fm>
Date: Wed May 16 2001 - 19:45:31 EDT

Ian Holsman wrote:

> the code puts 2 hooks into the http_proxy code.

Hooks again are very proxy specific - I am trying really hard to get away from proxy specific stuff. They spelled doom for the 1.3 proxy, and things have vastly improved since things became more modular and more simple.

In theory the existing Set(In|Out)putFilter directives should allow you to do exactly what you need to do without any modification to the existing proxy code at all. Write an input filter to handle the stuff before the connection, and the output filter will handle stuff you need after the connection. Make sure that whatever filter you use is triggered only on certain URLs, this way you can ensure the filter only runs when used as a subrequest from mod_include, and not otherwise.

Of course example code to start with is a huge help, and from my experience with mod_headers there doesn't seem to be any at the moment. Once I have finished with mod_headers though check there, as it is a rather simple example of an input filter and an output filter (as soon as I can get the &^%%#^% input filter to work).

Regards,
Graham

-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."

Received on Thu May 17 00:37:42 2001
Do you need help?X

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:16 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library