comparison http_location_auto.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 847ea345becb
children 882267679006
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
33 33
34 http { 34 http {
35 %%TEST_GLOBALS_HTTP%% 35 %%TEST_GLOBALS_HTTP%%
36 36
37 server { 37 server {
38 listen 127.0.0.1:8080; 38 listen 127.0.0.1:%%PORT_0%%;
39 server_name localhost; 39 server_name localhost;
40 40
41 proxy_hide_header X-Location; 41 proxy_hide_header X-Location;
42 add_header X-Location unset; 42 add_header X-Location unset;
43 43
51 # but with such a tree it tests locations "/a-b", "/a-a" and then 51 # but with such a tree it tests locations "/a-b", "/a-a" and then
52 # falls back to null location. 52 # falls back to null location.
53 # 53 #
54 # Key factor is that "-" is less than "/". 54 # Key factor is that "-" is less than "/".
55 55
56 location /a/ { proxy_pass http://127.0.0.1:8080/a-a; } 56 location /a/ { proxy_pass http://127.0.0.1:%%PORT_0%%/a-a; }
57 location /a-a { add_header X-Location a-a; return 204; } 57 location /a-a { add_header X-Location a-a; return 204; }
58 location /a-b { add_header X-Location a-b; return 204; } 58 location /a-b { add_header X-Location a-b; return 204; }
59 } 59 }
60 } 60 }
61 61