trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walt Karas <wka...@verizonmedia.com>
Subject Re: Proposed changes to regex_remap core plugin
Date Fri, 20 Nov 2020 19:47:03 GMT
I'm abandoning this, as it turns out it doesn't address our (Verizon) issue
that I need to handle.  I had thought that regex_remap matched against the
pristine URL.  But it matches against the requestURL passed to
TSRemapDoRemap().  In ATS7, the pristine URL was passed to the first remap
plugin, and we have ATS applications that rely on being able to match
against the pristine URL.  So I'm going to add the pparams "remapped" and
"pristine"'.  "remapped" will mean the current behavior (which will also be
the default behavior if "pristine" is not used).  "pristine" will mean the
pristine URL is used in place of the remapped, for matching as well as
substitution.

On Fri, Nov 13, 2020 at 12:54 PM Walt Karas <wkaras@verizonmedia.com> wrote:

> 1.  Two-character string substitutions can begin with ^ as well as $.  If
> ^ is used, and the substitution is a URL component, the component will be
> the one in the pristine, rather than the remapped, URL.  So, for example,
> $h is the host in the remapped URL, and ^h is the host in the pristine
> URL.  (^ seems intuitive as "before URL" with $ as "after URL", because ^
> means start of line and $ means end of line in regular expressions.)
>
> 2. Add the string substitutions $$ (translating to $) and ^^ (translating
> to ^).
>

Mime
View raw message