comparison proxy_bind.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 2bbab9bd73e5
children 766bcbb632ee
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
38 38
39 http { 39 http {
40 %%TEST_GLOBALS_HTTP%% 40 %%TEST_GLOBALS_HTTP%%
41 41
42 server { 42 server {
43 listen 127.0.0.1:%%PORT_0%%; 43 listen 127.0.0.1:8080;
44 server_name localhost; 44 server_name localhost;
45 45
46 proxy_bind 127.0.0.2; 46 proxy_bind 127.0.0.2;
47 47
48 location / { 48 location / {
49 proxy_bind 127.0.0.1; 49 proxy_bind 127.0.0.1;
50 proxy_pass http://127.0.0.1:%%PORT_1%%/; 50 proxy_pass http://127.0.0.1:8081/;
51 } 51 }
52 52
53 location /inherit { 53 location /inherit {
54 proxy_pass http://127.0.0.1:%%PORT_1%%/; 54 proxy_pass http://127.0.0.1:8081/;
55 } 55 }
56 56
57 location /off { 57 location /off {
58 proxy_bind off; 58 proxy_bind off;
59 proxy_pass http://127.0.0.1:%%PORT_1%%/; 59 proxy_pass http://127.0.0.1:8081/;
60 } 60 }
61 61
62 location /var { 62 location /var {
63 proxy_bind $arg_b; 63 proxy_bind $arg_b;
64 proxy_pass http://127.0.0.1:%%PORT_1%%/; 64 proxy_pass http://127.0.0.1:8081/;
65 } 65 }
66 66
67 location /port { 67 location /port {
68 proxy_bind 127.0.0.2:$remote_port; 68 proxy_bind 127.0.0.2:$remote_port;
69 proxy_pass http://127.0.0.1:%%PORT_1%%/; 69 proxy_pass http://127.0.0.1:8081/;
70 add_header X-Client-Port $remote_port; 70 add_header X-Client-Port $remote_port;
71 } 71 }
72 } 72 }
73 73
74 server { 74 server {
75 listen 127.0.0.1:%%PORT_1%%; 75 listen 127.0.0.1:8081;
76 server_name localhost; 76 server_name localhost;
77 77
78 location / { 78 location / {
79 add_header X-IP $remote_addr; 79 add_header X-IP $remote_addr;
80 add_header X-Port $remote_port; 80 add_header X-Port $remote_port;