Hi all,

 I've recently bumped into some wacky kind of problem with Apache 1.3.x that might 
require writting a patch. If I have mod_proxy enabled then all requests (proxy & non 
proxy) are logged to coresponding CustomLog/TransferLog file (with selected format). 
On a busy server this can make access logs consume quite a lot of disk space. Looks 
like there's no way to split proxy logs from access logs or even discard them at all. 
This could be solved by doing either:

1. Adding Request_URL attribute to mod_setenvif.c like this:

SetEnvIf Request_URL "^http\:\/\/" proxy_request
CustomLog "/path/to/access.log" common env=!proxy_request
CustomLog "/path/to/proxy.log" common env=proxy_request

2. Adding ProxyLog directive to mod_log_config.c like this:

ProxyLog file|pipe format-srting|format-name [env stuff]

...then log to that file if r->proxyreq is true.

3. This is documented somewhere else and I'm just wasting developer time instead of 
just RTFM (hopefully not)

This problems bugs me directly, so I'm willing to write patch. However since I came up 
with a number of ways to solve that problem I would like to see developer 
approval/vetos before I try to shoot myself in the foot for free ;))

-- 
Jacek Prucia
7bulls.com S.A.

Reply via email to