bhaveshpun opened a new issue, #9389:
URL: https://github.com/apache/trafficserver/issues/9389

   We're currently using ATS v8.1.1. 
   To support regular expressions in request paths, we've been trying to use 
the regex_remap plugin in the mapping rules 
   
   Our remap rules look like this:
   ```
   map https://example.com/.*.mp4 https://example.com/.*.mp4 @action=allow 
@method=get \
   @plugin=regex_remap.so @pparam=maps.reg \
   @plugin=url_sig.so @pparam=url_sig.config @pparam=pristineurl \
   @plugin=compress.so @pparam=example.config \
   
   map https://example.com/ https://example.com/ @action=allow @method=post 
@method=get \
   @plugin=regex_remap.so @pparam=maps.reg \
   ```  
   Rules in the maps.reg file are defined in the following way:
   ```
   ^/.*mp4 $s://$f/$0
   ```
   We would want to use the signed url plugin, the compression plugin and the 
allowed methods defined in the `.*mp4` mapping rule on requests that match the 
`.*mp4` regex.
   
   > For example, requests of the type https://example.com/abc.mp4 should be 
signed and only get method should be allowed for them.
   
   With the current configurations, https://example.com/abc.mp4 matches the 
second mapping rule. Post method is allowed for such a request, signed urls are 
not required and compression isn't supported as well.
    
   Is there a way in which we can enable the use of different remap plugins for 
different regex rules in the maps.reg file ?
   Or is there a simpler workaround for requests to match mapping rules 
containing regex quantifiers ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to