I created 2 files that are being included by default:
- /etc/nginx/conf.d/limiter.conf
limit_conn_zone $binary_remote_addr zone=addr:10m;
- /home/admin/conf/web/actual.domain.com/nginx.conf_stopdirect
error_page 503 503.html;
location /downloads/ {
internal;
limit_conn addr 2;
limit_rate 1m;
add_header X-Robots-Tag "noindex, nofollow" always;
}
I did nginx -T
no errors, i see them getting included.
I expect not to have direct access via web browser to anything inside /downloads/ but i do.
I noticed the directory index does indeed 403 but not its contents.
The limit_rate 1m; is about 1MB/s, it’s being ignored.
I also tried limit_rate 5200k; also ignored.
I’m confident this config works cos i’ve used it with serverpilot for years, i think i’m the rigth context? limiter.conf inside http and nginx.conf_stopdirect on server context.
What am i doing wrong?