Bug 54401 - Suggest to make ProxyPassReverseCookieDomain accept balancer as argument
Summary: Suggest to make ProxyPassReverseCookieDomain accept balancer as argument
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 2.4.3
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 09:03 UTC by althial
Modified: 2013-01-14 11:11 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description althial 2013-01-10 09:03:28 UTC
As I see it the directives "ProxyPassReverse" and "ProxyPassReverseCookieDomain" work almost identically, differing only in the relevant sections they change. This is also implied by the description of "ProxyPassReverseCookieDomain" (http://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypassreverse): "Usage is basically similar to ProxyPassReverse, but instead of rewriting headers that are a URL, this rewrites the domain string in Set-Cookie headers."

Nevertheless, "ProxyPassReverse" accepts a balancer as argument, extracting the relevant domain information on it's own, where "ProxyPassReverseCookieDomain" does not. Actually, it does accept the balancer as argument but does not extract the relevant domain information from it, instead using it as a direct match against the "Domain" parts of cookies - which of course is not what is desired in such a use case.

I suggest to change the directives so they both use the existing code to extract the domain information from the balancer.