comparison http_try_files.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
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:%%PORT_0%%; 38 listen 127.0.0.1:8080;
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:%%PORT_1%%/fallback; 82 proxy_pass http://127.0.0.1:8081/fallback;
83 } 83 }
84 location /fallback-nouri { 84 location /fallback-nouri {
85 proxy_pass http://127.0.0.1:%%PORT_1%%; 85 proxy_pass http://127.0.0.1:8081;
86 } 86 }
87 } 87 }
88 88
89 server { 89 server {
90 listen 127.0.0.1:%%PORT_1%%; 90 listen 127.0.0.1:8081;
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;