httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alin vasile <>
Subject Re: Mod-Proxy and related modules
Date Mon, 12 Sep 2011 08:57:05 GMT
I managed to get the forwarded url in r->notes by using a hook in mod_proxy:

proxy_hook_pre_request(pre_proxy_request, NULL, NULL, APR_HOOK_FIRST); 

int pre_proxy_request(proxy_worker **worker,
        proxy_balancer **balancer,
        request_rec *r,
        proxy_server_conf *conf, char **url) {

     apr_table_set(r->notes, "MY_FORWARD_URL" , apr_pstrdup(r->pool, url));


    return DECLINED;

Hope this helps.

From: Suneet Shah <>
Sent: Sunday, September 11, 2011 9:11 PM
Subject: Mod-Proxy and related modules


I am trying to proxy to an application that was built with Google Web
Toolkit and am trying to see if I can use the existing proxy functionality
that is provided with Apache will work if I need to extend or build a new

The application makes an RPC call that contains a payload. Is it possible
- Log the payload?
- Is it possible to modify the payload?
For example:

A payload may come in as 6|0|6|http://localhost:9080/
But it should be 6|0|6|http://localhost:9080/test_rpc

If we cant do it using something like mod-rewrite, would it be possible to
get some guidance as to where I can look in the code to mod_proxy code to
potentially modify this?

thanks in advance for your help
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message