limit_rate_after does not work inside location block
Maxim Dounin
mdounin at mdounin.ru
Wed Oct 16 12:39:50 UTC 2019
Hello!
On Wed, Oct 16, 2019 at 05:21:41AM -0400, sachin.shetty at 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/
More information about the nginx
mailing list