On Jun 11, 2014, at 10:40 AM, [email protected] wrote:

>>> 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
> 
> Is it possible to chain "regex_remap" and "header_rewrite" to be able to 
> rewrite header depending on the PATH ?


You shouldn’t have to. header_rewrite supports regex on the path.

— Leif

Reply via email to