comparison http_try_files.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 3200d5b4ffa8
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 location / { 41 location / {
42 try_files $uri /fallback; 42 try_files $uri /fallback;
43 } 43 }
77 try_files $uri =404; 77 try_files $uri =404;
78 } 78 }
79 } 79 }
80 80
81 location /fallback { 81 location /fallback {
82 proxy_pass http://127.0.0.1:8081/fallback; 82 proxy_pass http://127.0.0.1:%%PORT_1%%/fallback;
83 } 83 }
84 location /fallback-nouri { 84 location /fallback-nouri {
85 proxy_pass http://127.0.0.1:8081; 85 proxy_pass http://127.0.0.1:%%PORT_1%%;
86 } 86 }
87 } 87 }
88 88
89 server { 89 server {
90 listen 127.0.0.1:8081; 90 listen 127.0.0.1:%%PORT_1%%;
91 server_name localhost; 91 server_name localhost;
92 92
93 location / { 93 location / {
94 add_header X-URI $request_uri; 94 add_header X-URI $request_uri;
95 return 204; 95 return 204;