comparison proxy_protocol.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 cf14cfe9ec8c
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
39 %%TEST_GLOBALS_HTTP%% 39 %%TEST_GLOBALS_HTTP%%
40 40
41 log_format pp '$remote_addr $request'; 41 log_format pp '$remote_addr $request';
42 42
43 server { 43 server {
44 listen 127.0.0.1:%%PORT_0%% proxy_protocol; 44 listen 127.0.0.1:8080 proxy_protocol;
45 server_name localhost; 45 server_name localhost;
46 46
47 set_real_ip_from 127.0.0.1/32; 47 set_real_ip_from 127.0.0.1/32;
48 add_header X-IP $remote_addr; 48 add_header X-IP $remote_addr;
49 add_header X-PP $proxy_protocol_addr; 49 add_header X-PP $proxy_protocol_addr;