Changes with Apache 2.3.15
+ *) mod_proxy_http, mod_proxy_connect: Add 'proxy-status' and
+ 'proxy-source-port' request notes for logging. PR 30195. [Stefan Fritsch]
+
*) configure: Enable ldap modules in 'all' and 'most' selections if ldap
is compiled into apr-util. [Stefan Fritsch]
</summary>
<seealso><module>mod_proxy</module></seealso>
+<section id="notes"><title>Request notes</title>
+ <p><module>mod_proxy_connect</module> creates the following request notes for
+ logging using the <code>%{VARNAME}n</code> format in
+ <directive module="mod_log_config">LogFormat</directive> or
+ <directive module="core">ErrorLogFormat</directive>:
+ </p>
+ <dl>
+ <dt>proxy-source-port</dt>
+ <dd>The local port used for the connection to the backend server.</dd>
+ </dl>
+</section>
+
<directivesynopsis>
<name>AllowCONNECT</name>
<description>Ports that are allowed to <code>CONNECT</code> through the
</dl>
</section>
+<section id="notes"><title>Request notes</title>
+ <p><module>mod_proxy_http</module> creates the following request notes for
+ logging using the <code>%{VARNAME}n</code> format in
+ <directive module="mod_log_config">LogFormat</directive> or
+ <directive module="core">ErrorLogFormat</directive>:
+ </p>
+ <dl>
+ <dt>proxy-source-port</dt>
+ <dd>The local port used for the connection to the backend server.</dd>
+ <dt>proxy-status</dt>
+ <dd>The HTTP status received from the backend server.</dd>
+ </dl>
+</section>
+
</modulesynopsis>
ap_log_rerror(APLOG_MARK, APLOG_TRACE3, 0, r,
"proxy: CONNECT: connection complete to %pI (%s)",
connect_addr, connectname);
-
+ apr_table_setn(r->notes, "proxy-source-port", apr_psprintf(r->pool, "%hu",
+ backconn->local_addr->port));
/* If we are connecting through a remote proxy, we need to pass
* the CONNECT request on to it.
* response.
*/
backend->r->proxyreq = PROXYREQ_RESPONSE;
+ apr_table_setn(r->notes, "proxy-source-port", apr_psprintf(r->pool, "%hu",
+ origin->local_addr->port));
tmp_bb = apr_brigade_create(p, c->bucket_alloc);
do {
apr_status_t rc;
keepchar = buffer[12];
buffer[12] = '\0';
proxy_status = atoi(&buffer[9]);
+ apr_table_setn(r->notes, "proxy-status",
+ apr_pstrdup(r->pool, &buffer[9]));
if (keepchar != '\0') {
buffer[12] = keepchar;