Mercurial > hg > nginx-tests
comparison http_location_auto.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 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:%%PORT_0%%/a-a; } | 56 location /a/ { proxy_pass http://127.0.0.1:8080/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 |