Hi Roy,

> I'm setting up a proxy using Apache 2.2.8 with mod_proxy and I need to add a
> custom request header with information that is currently stored in our MySQL
> server. I was thinking of using Apache to get user's IP address and pass it
> to mod_perl where mod_perl script will query the database based on that IP
> address, but I'm not sure how to have mod_perl send the result back to
> Apache.

I think you're not getting responses to this because no one is sure
what you're trying to do.  Are you saying that you're building a proxy
server with mod_proxy and mod_perl in it and you want to add something
to the requests that you proxy before sending them on to the real
server?  Have you tried writing a mod_perl fixup handler?

> Just a note, I've been testing using mod_header to add a custom request
> header and it has been working. I've also tested using
> Apache2::Filter::HTTPHeadersFixup and for some reason it works fine if the
> destination website doesn't use any kind of cookies.

Ok, are you saying that it doesn't work when there are cookies?  How
does it fail?  What happens?

- Perrin

Reply via email to