Maxim Dounin
October 16, 2019 08:40AM
Hello!

On Wed, Oct 16, 2019 at 05:21:41AM -0400, sachin.shetty@gmail.com wrote:

> I have a location block
>
> location ~ /get_file$ {
> limit_rate_after 500m;
> limit_rate 1m;
> ...
> ...
> }
>
> The limit_rate_after does not work when put inside the location block, if I
> move it right above the location line i.e. inside server block, it works.
>
> Any idea on how to make it work inside location and if block.

It does work, as long as the response is returned within the location
in question. If it doesn't work, likely the response is returned
elsewhere.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

limit_rate_after does not work inside location block

sachin.shetty@gmail.com October 16, 2019 05:21AM

Re: limit_rate_after does not work inside location block

Maxim Dounin October 16, 2019 08:40AM

Re: limit_rate_after does not work inside location block

sachin.shetty@gmail.com October 16, 2019 09:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
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