Mercurial > hg > nginx-tests
comparison stream_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 | 5f9dfe85a1f2 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
36 events { | 36 events { |
37 } | 37 } |
38 | 38 |
39 stream { | 39 stream { |
40 server { | 40 server { |
41 listen 127.0.0.1:8081; | 41 listen 127.0.0.1:%%PORT_1%%; |
42 proxy_bind 127.0.0.2; | 42 proxy_bind 127.0.0.2; |
43 proxy_pass 127.0.0.1:8082; | 43 proxy_pass 127.0.0.1:%%PORT_2%%; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 http { | 47 http { |
48 %%TEST_GLOBALS_HTTP%% | 48 %%TEST_GLOBALS_HTTP%% |
49 | 49 |
50 server { | 50 server { |
51 listen 127.0.0.1:8080; | 51 listen 127.0.0.1:%%PORT_0%%; |
52 server_name localhost; | 52 server_name localhost; |
53 | 53 |
54 location / { | 54 location / { |
55 proxy_pass http://127.0.0.1:8081; | 55 proxy_pass http://127.0.0.1:%%PORT_1%%; |
56 } | 56 } |
57 } | 57 } |
58 | 58 |
59 server { | 59 server { |
60 listen 127.0.0.1:8082; | 60 listen 127.0.0.1:%%PORT_2%%; |
61 | 61 |
62 location / { | 62 location / { |
63 add_header X-IP $remote_addr; | 63 add_header X-IP $remote_addr; |
64 } | 64 } |
65 } | 65 } |