Limit connections to mp4 files

Cristian Rusu crirus at
Mon Feb 18 12:01:32 UTC 2013


I set this to my nginx config to prevent users playing multiple videos at
the same time:

http {
    limit_conn_zone $binary_remote_addr zone=addr:10m;
    server {
        location ~ \.mp4$ {
            limit_conn addr 2;
            limit_conn_log_level info;

This doesn't seems to prevent anyone from playing at least three videos at
What am I doing wrong here?

Cristian Rusu
Web Developement & Electronic Publishing

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list