Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m;
  2.  
  3. server {
  4. ...
  5.  
  6. #
  7. #max requests allowed for login.html are 30/minute!
  8. #
  9.  
  10. location /login.html {
  11. limit_req zone=one;
  12. ...
  13. }
  14. }
  15.  
  16. limit_conn_zone $binary_remote_addr zone=addr:10m;
  17.  
  18. server {
  19. ...
  20.  
  21. #
  22. #max connections per IP client allowed are 10!
  23. #
  24.  
  25. location /store/ {
  26. limit_conn addr 10;
  27. ...
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement