trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Peach <jpe...@apache.org>
Subject Re: Regex remap
Date Wed, 11 Jun 2014 16:21:38 GMT
On Jun 11, 2014, at 9:15 AM, Ram Chander <ramquick@gmail.com> wrote:

> Hi,
> 
>  I am trying to have a remap to choose origin based on filetype. 
> 
> Basically want to send all css files to server1 and default to server2. But below doesnt
work.   Can someone please help ?
> 
> regex_map http://(.*)/*.css$  http://server1
> map / http://server2

regex_map only matches on the server name. You need to use the regex_remap plugin to match
against the whole URL

https://docs.trafficserver.apache.org/en/latest/reference/plugins/regex_remap.en.html

> 
> 
> Regards,
> Ram
> 
> 
> 


Mime
View raw message