Changes between Initial Version and Version 1 of Ticket #564, comment 3
- Timestamp:
- 04/19/16 19:13:19 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #564, comment 3
initial v1 1 1 It would be more useful IMO if the positional captures could be used within the map directive itself. Here's a silly example that could be achieved with other things, but just to show what I mean: 2 3 4 5 6 7 2 {{{ 3 map $http_accept_language $myindex { 4 default index.en.html; 5 ~(.*) index.$1.html; 6 } 7 }}} 8 8 I ran into a case recently where it would have been very useful to have some regex with different numbers of matches replaced within a map directive http://serverfault.com/questions/769373/porting-rewritecond-query-string-from-apache2-to-nginx