comparison limit_conn.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents e9064d691790
children 196d33c2bb45
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
40 limit_conn_zone $binary_remote_addr zone=zone:1m; 40 limit_conn_zone $binary_remote_addr zone=zone:1m;
41 limit_conn_zone $binary_remote_addr zone=zone2:1m; 41 limit_conn_zone $binary_remote_addr zone=zone2:1m;
42 limit_conn_zone $binary_remote_addr zone=custom:1m; 42 limit_conn_zone $binary_remote_addr zone=custom:1m;
43 43
44 server { 44 server {
45 listen 127.0.0.1:%%PORT_1%%; 45 listen 127.0.0.1:8081;
46 server_name localhost; 46 server_name localhost;
47 47
48 location /w { 48 location /w {
49 limit_req zone=req burst=10; 49 limit_req zone=req burst=10;
50 } 50 }
51 } 51 }
52 52
53 server { 53 server {
54 listen 127.0.0.1:%%PORT_0%%; 54 listen 127.0.0.1:8080;
55 server_name localhost; 55 server_name localhost;
56 56
57 location / { 57 location / {
58 proxy_pass http://127.0.0.1:%%PORT_1%%; 58 proxy_pass http://127.0.0.1:8081;
59 limit_conn zone 1; 59 limit_conn zone 1;
60 } 60 }
61 61
62 location /1 { 62 location /1 {
63 limit_conn zone 1; 63 limit_conn zone 1;
70 location /unlim { 70 location /unlim {
71 limit_conn zone 5; 71 limit_conn zone 5;
72 } 72 }
73 73
74 location /custom { 74 location /custom {
75 proxy_pass http://127.0.0.1:%%PORT_1%%/; 75 proxy_pass http://127.0.0.1:8081/;
76 limit_conn_log_level info; 76 limit_conn_log_level info;
77 limit_conn_status 501; 77 limit_conn_status 501;
78 limit_conn custom 1; 78 limit_conn custom 1;
79 } 79 }
80 } 80 }