You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by "T.Pascal" <t_...@zennet.com> on 2000/03/17 17:23:11 UTC

mod_proxy/5897: Using mod proxy and is broken

>Number:         5897
>Category:       mod_proxy
>Synopsis:       Using mod proxy and <LocationMatch> is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Mar 17 08:30:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     t_pascal@zennet.com
>Release:        1.3.9
>Organization:
apache
>Environment:
Sun Sparc Solaris 2.6, with gcc 2.8.1
>Description:
I have a proxypass situation and would like to add cache-control headers to the
proxy'd pages.  Specifically, I'd like to cache dynamic content that
is of the form http://other.server.com/querydir/somequery.show_parms

E.g.,

<IfModule mod_proxy.c>
  ProxyPass /querydir/ http://other.server.com/querydir/
</IfModule>

<LocationMatch "*show_parms">
  Header append Cache-Control "max-age=28800,public"
</LocationMatch>

Of course, it doesn't work.  I can't make LocationMatch work on any proxy'd
pages.  I believe the manual alludes to using <Directory> but that is inappropriate
for a proxypass.

I've posted on usenet and waited a week and half with no replies.
>How-To-Repeat:

>Fix:
Please make LocationMatch work with mod_proxy.
>Release-Note:
>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!     ]