Changes between Initial Version and Version 1 of Ticket #564, comment 3


Ignore:
Timestamp:
04/19/16 19:13:19 (8 years ago)
Author:
claudeha@…

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #564, comment 3

    initial v1  
    11It 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     map $http_accept_language $myindex {
    4         default index.en.html;
    5         ~(.*) index.$1.html;
    6     }
    7 
     2{{{
     3map $http_accept_language $myindex {
     4    default index.en.html;
     5    ~(.*) index.$1.html;
     6}
     7}}}
    88I 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