httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50048] New: ProxyPass(Match) within Location(Match)
Date Tue, 05 Oct 2010 18:56:06 GMT

           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

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:

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


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.


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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message