httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50048] New: ProxyPass(Match) within Location(Match)
Date Tue, 05 Oct 2010 18:56:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50048

           Summary: ProxyPass(Match) within Location(Match)
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Documentation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: lmeyer@vmware.com


ProxyPass can get its first argument (the path) from a wrapping Location block.
ProxyPassMatch can get its first argument (the regex) from a wrapping
LocationMatch (or Location ~, which I won't mention again) block.

The ProxyPass docs are pretty clear about the first case. They don't really
mention the second case, and also don't describe what happens if you mix and
don't match - in particular, a ProxyPass within LocationMatch is probably not
going to do what the user hopes. And also, ProxyPassReverse is only discussed
in the context of Location.

For any who wonder - my understanding is that when these directives are used
inside a Location or LocationMatch block, the argument to the block is used
verbatim as the argument to the directive. When one is expecting a regex and
the other a path, results may be surprising, but httpd will not complain about
the syntax.

I propose changes to three sections:
1) http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

Mention that if you're trying to put this inside LocationMatch, you probably
want the ProxyPassMatch directive instead.

2) http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassmatch

Explain that inside LocationMatch, the first argument comes from the block.
Currently the syntax marks the regex as optional, while not explaining where it
would come from.

3) http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse

Explain that inside Location or LocationMatch, the first argument comes from
the block, and that this is probably not desirable inside LocationMatch
(perhaps there should be a ProxyPassReverseMatch?).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message