Mercurial > hg > nginx-tests
comparison proxy_bind.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 45d89d9c38a9 |
children | 2bbab9bd73e5 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
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:8080; | 43 listen 127.0.0.1:%%PORT_0%%; |
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:8081/; | 50 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
51 } | 51 } |
52 | 52 |
53 location /inherit { | 53 location /inherit { |
54 proxy_pass http://127.0.0.1:8081/; | 54 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
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:8081/; | 59 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
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:8081/; | 64 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 server { | 68 server { |
69 listen 127.0.0.1:8081; | 69 listen 127.0.0.1:%%PORT_1%%; |
70 server_name localhost; | 70 server_name localhost; |
71 | 71 |
72 location / { | 72 location / { |
73 add_header X-IP $remote_addr; | 73 add_header X-IP $remote_addr; |
74 } | 74 } |