Fix regex capture when using map directive and rewrite

Maxim Dounin mdounin at
Mon Sep 28 13:55:22 UTC 2020


On Mon, Sep 28, 2020 at 01:54:51PM +0200, Corentin REGAL wrote:

> I didn't receive any reply, is there something wrong with the patch ?

Yes.  In particular, the documentation says (

: A regular expression can contain named and positional captures 
: that can later be used in other directives along with the 
: resulting variable.

With your patch it will no longer work.

Just in case, relevant ticket in Trac is:

Maxim Dounin

More information about the nginx-devel mailing list