www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrik Hornik <pat...@netdive.com>
Subject mod_proxy/7461: The response headers are not logged when proxy serves the document.
Date Mon, 26 Mar 2001 11:34:30 GMT

>Number:         7461
>Category:       mod_proxy
>Synopsis:       The response headers are not logged when proxy serves the document.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Mar 26 03:40:01 PST 2001
>Originator:     patrik@netdive.com
>Release:        1.3.14
Linux kernel 2.4.0
The response headers are not logged when mod_proxy serves the document. This is because proxy
writes them directly to the output and doesnt add them to the request->headers_out table.
And mod_log_config parses request->headers_out for {}o log directives..
Every document accessed through proxy... :))
Yes, add response headers to request->headers_out table in ap_proxy_send_hdr_line in proxy_util.c:
if (!parm->req->assbackwards)
  ap_rvputs(parm->req, key, ": ", value, CRLF, NULL);

// Here comes the fix...
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message