comparison proxy_protocol_ipv6.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
35 35
36 http { 36 http {
37 %%TEST_GLOBALS_HTTP%% 37 %%TEST_GLOBALS_HTTP%%
38 38
39 server { 39 server {
40 listen [::1]:%%PORT_0%% proxy_protocol; 40 listen [::1]:%%PORT_8080%% proxy_protocol;
41 server_name localhost; 41 server_name localhost;
42 42
43 add_header X-IP $remote_addr; 43 add_header X-IP $remote_addr;
44 add_header X-PP $proxy_protocol_addr; 44 add_header X-PP $proxy_protocol_addr;
45 real_ip_header proxy_protocol; 45 real_ip_header proxy_protocol;
52 } 52 }
53 } 53 }
54 54
55 stream { 55 stream {
56 server { 56 server {
57 listen 127.0.0.1:%%PORT_0%%; 57 listen 127.0.0.1:8080;
58 proxy_pass [::1]:%%PORT_0%%; 58 proxy_pass [::1]:%%PORT_8080%%;
59 59
60 proxy_protocol on; 60 proxy_protocol on;
61 } 61 }
62 } 62 }
63 63