You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Vadim Zaliva <lo...@crocodile.org> on 1999/09/13 21:41:52 UTC

mod_proxy/5005: mod_proxy ignores headers_out set by other modules

>Number:         5005
>Category:       mod_proxy
>Synopsis:       mod_proxy ignores headers_out set by other modules
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Sep 13 12:50:00 PDT 1999
>Last-Modified:
>Originator:     lord@crocodile.org
>Organization:
apache
>Release:        1.3
>Environment:
RedHat linux 6, egcs-2.91.66
>Description:
Currently, mod_proxy ignores all headers set by other modules.
For example if you are using mod_usertrack and mod_proxy
at the same time, cookies set by mod_usertrack
will be lost when request get to mod_proxy.
>How-To-Repeat:
here is part of CFG file:

# --- Proxy setup ---

ProxyRequests off
ProxyPass        / http://deimos.us.matranet.com/
ProxyPassReverse / http://deimos.us.matranet.com/
ProxyDomain      .us.matranet.com


# --- User tracking ----

CookieTracking on
CookieExpires "60 seconds"
CookieName    ApacheTracker
CustomLog     logs/clickstream "%{cookie}n %r %t"

Notice that cookies not set.
>Fix:
I've put patch correcting this problem at:

ftp://ftp.crocodile.org/pub/apache-patches/proxy.headers.patch

I've tested and it works fine.
Also it hadles err_headers_out and FTP proxying as well.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@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!     ]