Welcome! Log In Create A New Profile

Advanced

Re: limit_req at server level gives 404 error for files rewritten at location level?

J.R.
April 26, 2020 02:40PM
> In particular, if limit_req uses a map with regular expressions,
> this might result in $1.$2 to be set to something completely
> different from what was expected from the location matching.
>
> The general rule is: avoid using positional captures from regular
> expressions in location and server_name matching, these can be
> used only in very simple configurations.

You were right! I forgot I had a map matching /24 of the
$binary_subnet_addr that was being used by the limit_req_zone
directive.

I went through and gave names to my capture groups just to ensure this
type of conflict doesn't happen again.

Thanks again for your help!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

limit_req at server level gives 404 error for files rewritten at location level?

J.R. April 26, 2020 11:00AM

Re: limit_req at server level gives 404 error for files rewritten at location level?

Maxim Dounin April 26, 2020 12:44PM

Re: limit_req at server level gives 404 error for files rewritten at location level?

J.R. April 26, 2020 02:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready