httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Question: how to change the request in input filter and pass it to proxy
Date Thu, 03 Apr 2008 09:58:30 GMT
On Wed, 2 Apr 2008 21:31:27 -0700
"Olexandr Prokhorenko" <prokhorenko@gmail.com> wrote:

> Hi everyone,
> 
> I am working on the input filter which is going to catch on input
> requests, find the bucket with "Host: ", modify it and pass it
> through.  I will modify it to something that does not belong to my
> httpd server, so I need to pass it through the proxy module (my
> guess ;).  I can't use either the static ProxyPass or
> ProxyReversePass, because the host will be modified dynamically and
> it will depend on what is called and substitute it from the database
> call.

You're making a mountain of a molehill.  You can do the proxying
using RewriteRule, and the dynamic mapping using RewriteMap.
Or if you want to do it in a module, you can just use a
header_parser hook, which is much simpler than a filter.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message