comparison proxy_xar.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
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
34 34
35 http { 35 http {
36 %%TEST_GLOBALS_HTTP%% 36 %%TEST_GLOBALS_HTTP%%
37 37
38 server { 38 server {
39 listen 127.0.0.1:%%PORT_0%%; 39 listen 127.0.0.1:8080;
40 server_name localhost; 40 server_name localhost;
41 41
42 # catch safe and unhandled unsafe URIs, 42 # catch safe and unhandled unsafe URIs,
43 # bypassed with redirect to named location 43 # bypassed with redirect to named location
44 if ($upstream_http_x_accel_redirect) { 44 if ($upstream_http_x_accel_redirect) {
45 return 200 "xar: $upstream_http_x_accel_redirect uri: $uri 45 return 200 "xar: $upstream_http_x_accel_redirect uri: $uri
46 method: $request_method"; 46 method: $request_method";
47 } 47 }
48 48
49 location /proxy { 49 location /proxy {
50 proxy_pass http://127.0.0.1:%%PORT_0%%/return-xar; 50 proxy_pass http://127.0.0.1:8080/return-xar;
51 } 51 }
52 location /return-xar { 52 location /return-xar {
53 add_header X-Accel-Redirect $arg_xar; 53 add_header X-Accel-Redirect $arg_xar;
54 54
55 # this headers will be preserved on 55 # this headers will be preserved on