trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miles Libbey <>
Subject Re: Regex Remap plugin - follow redirect
Date Fri, 04 Dec 2015 22:55:33 GMT
I think this is indeed doable with the regex_remap plugin.  Something like
map   http://origin/ \    http://thispartdoesntmatter \ @pparam=regex.config 
where regex.config is your regex^/*/(.*)$ http://origin/$1


    On Thursday, December 3, 2015 8:12 AM, Steve Malenfant <> wrote:

I believe that's one I use that sends back a redirect to the user. I wanted to make the transfer
and forward through the parent/origin.
On Thu, Dec 3, 2015 at 10:13 AM, Leif Hedstrom <> wrote:

On Dec 3, 2015, at 6:51 AM, Steve Malenfant <> wrote:
Is there way we can modify the path of a filename requested to an origin? In this example,
I want to remove the "path" portion and only send the "filename" to the origin.
Looks like regex_map won't work from documentation (there is no regex_remap?) :"Only the host
field can contain a regex; the scheme, port, and other fields cannot. For path manipulation
via regexes, use the regex_remap plugin"
Here's what I tried :regex remap plugin line : ^/*/(.*)$ http://origin/$1
Original remapped request : http://origin/

That is correct. There is a plugin to address this:

— leif

View raw message