Hello again I tried removing the #if debugging from proxy_http.c and re-compiled but it did not help. Can anybody offer me a piece of code which I can embed in proxy_http.c to dump out the entire request (get/post parameters, cookies, etc.) being passed to the backend and the corresponding response from the backend including the headers and the body. Thanks - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Jignesh Badani Intranet/Extranet Technical Services Mitsubishi Motors North America Cypress, CA, 90630 (W) - 714-934-3563 Jignesh Badani <jbadani@xxxxxxxx> 05/25/2005 05:27 PM Please respond to users@xxxxxxxxxxxxxxxx To <users@xxxxxxxxxxxxxxxx> cc Subject [users@httpd] Need help with #if DEBUGGING in proxy_http.c Folks, we have been seeing quite a few 502 - (proxy: error reading status line from remote server) with one of our backend server (very old Oracle Web Application server 3.0 /HTTP 1.1) and I need to debug these request. When I set LogLevel to debug, I still do not see the response stream (bytes being transferred from the backend server to the Proxy) outputted to the error log. I only see this: [Wed May 25 16:14:43 2005] [debug] ssl_engine_io.c(1489): +-------------------------------------------------------------------------+ [Wed May 25 16:14:43 2005] [debug] proxy_http.c(956): proxy: header only [Wed May 25 16:14:45 2005] [debug] proxy_http.c(893): proxy: start body send [Wed May 25 16:14:45 2005] [debug] proxy_http.c(953): proxy: end body send [Wedder only May 25 16:14:45 2005] [debug] ssl_engine_io.c(1511): OpenSSL: read 5/5 bytes from BIO#2ecce0 [mem: 3458d0] (BIO dump follows) When I looked at the proxy_http.c, I see the following piece of code which I guess is preventing writing to the debug log. I believe the #if ( conditional if) is a pre-complier flag used during compilation (?) or can it be also be used during run time somehow by passing some argument ? #if DEBUGGING { apr_off_t readbytes; apr_brigade_length(bb, 0, &readbytes); ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "proxy (PID %d): readbytes: %#x", getpid(), readbytes); } #endif Also, strangely enough, only mod_proxy module is using the #if DEBUGGING pre-compiler flag, why !? Thanks - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Jignesh Badani --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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