> On Dec 3, 2015, at 6:51 AM, Steve Malenfant <[email protected]> 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 : ^/this.that.com/t.*/(.*)$ 
> <http://this.that.com/t.*/(.*)$> http://origin/$1 <http://origin/$1>
> 
> Original remapped request : http://origin/this.that.com/t1/test.ts 
> <http://origin/this.that.com/t1/test.ts>
> 


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

        
https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/regex_remap.en.html


— leif


Reply via email to