httpd 2.2.11 proxy CustomLog problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am having some trouble with the CustomLog %m, %X, %I and %O formats.
I am using httpd 2.2.11 as a proxy server.

For %m, the method logged is always GET when the server returns an
error, even if the original method was something else, in particular
CONNECT.  I am using an ErrorDocument redirecting to a local .shtml
file.  I found that REQUEST_METHOD in the .shtml is also GET, and that
the original method was in REDIRECT_REQUEST_METHOD.  So, I tried to log
"%<m" instead to get the original request's method, but that also logged
GET instead of CONNECT.

For %X, I see logs for "+" (connection successful/keepalive) and "-"
(connection successful/closed) but I have not been able to get "X"
(connection aborted) even by interrupting ongoing transfers.  When
should %X log an aborted connection?

For %I and %O, my objective to log the size of documents sent through
the proxy.  %b/%B only log the size of the response from the server, not
the size of any documents POST'd.  This seems to work well for GET/POST,
but for CONNECT %I is always 203 and %O is always 0.

I'd appreciate any assistance/direction.

Thanks,

Evan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux