Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4760

Rate Limit by URL

$
0
0

Hi, I make this:

And it works, but I don’t want to rate limit the path (e.g. vanessamello.com**/img**)

I want to rate the entire URL.

I tried to change from:
http-request set-var(req.rate_limit) path,map_beg(/etc/haproxy/rates.map,20)

to:
http-request set-var(req.rate_limit) map_str(/etc/haproxy/rates.map,20)

But I have this output:

[ALERT] (243) : parsing [/etc/haproxy/haproxy.cfg:123] : error detected in frontend ‘www-h2-https’ while parsing ‘http-request set-var(req.rate_limit)’ rule : unknown fetch method ‘map_str’.
[ALERT] (243) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
failed!

Please, do anybody have any tip?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4760

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>