How can I enable logging for requests going through mod proxy

Posted by Kariem on Server Fault See other posts from Server Fault or by Kariem
Published on 2011-03-18T10:08:08Z Indexed on 2011/03/18 16:12 UTC
Read the original article Hit count: 620

Filed under:
|
|
|

Is there a way to log requests going through mod proxy? I need a way to debug my configuration, because I don't seem to be getting where I should be. I need the following information:

  • headers of incoming requests
  • what is being sent to the proxy target

Maybe a related question: is there a way to strip some headers? I tried the following:

ProxyPass         /proxy/other http://not.under.my.control/
<Location /proxy/other>
   ProxyPassReverse /
   RequestHeader unset Authorization
</Location>

I don't really know whether this is ok, because I don't see anything.

Thank you,
Kariem

© Server Fault or respective owner

Related posts about apache

Related posts about logging