I'm trying to configure NginX (in combination with Passenger and Rails) to prevent "Slow HTTP Denial of Service".
What I'm trying to do to prevent it, is limiting the amount of requests per connections to 5 and decrease the timeouts.
This is my configuration:
worker_processes 1;
...
events {
worker_connections 1024;
}
http {
...
limit_conn_zone $binary_remote_addr zone=addr:10m;
limit_conn addr 5;
client_body_timeout 15;
client_header_timeout 15;
keepalive_timeout 15;
send_timeout 15;
...
server {
...
}
}
Our testing software, Qualisguard, says it's still not prevented against Slow HTTP DoS.
Would this even work, or is the configuration itself incorrect?