Mercurial > hg > nginx-tests
comparison proxy_xar.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 | 9239393e73c8 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
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:8080; | 39 listen 127.0.0.1:%%PORT_0%%; |
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:8080/return-xar; | 50 proxy_pass http://127.0.0.1:%%PORT_0%%/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 |