On 26 Dec 2013, at 11:45 AM, Graham Leggett <minf...@sharp.fm> wrote:

>> Why not using the standard regex syntax:
>> <LocationMatch ~ "^/(?<MYPREFIX>foo|bar)/baz/(?<MYFILE>.*)">
> 
> Is it supported by our current API?

It wasn't, but it is in this patch.

What this patch does is add all matching named variables from all matching 
LocationMatch/DirectoryMatch/FileMatch to the subprocess environment, 
uppercased, This opens up the possibility to reference elements of the URL from 
within directives that have access to the environment. Example like this:

<LocationMatch ^/(?<prefix>.*)/(?<name>.*)>
  # PREFIX and NAME are defined here
</LocationMatch>

Regards,
Graham
--

Attachment: httpd-match-backref2.patch
Description: Binary data

Reply via email to