Mercurial > hg > nginx-tests
comparison proxy_cache_range.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 | bab7b53a156f |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
36 | 36 |
37 proxy_cache_path %%TESTDIR%%/cache levels=1:2 | 37 proxy_cache_path %%TESTDIR%%/cache levels=1:2 |
38 keys_zone=NAME:1m; | 38 keys_zone=NAME:1m; |
39 | 39 |
40 server { | 40 server { |
41 listen 127.0.0.1:%%PORT_0%%; | 41 listen 127.0.0.1:8080; |
42 server_name localhost; | 42 server_name localhost; |
43 | 43 |
44 location / { | 44 location / { |
45 proxy_pass http://127.0.0.1:%%PORT_1%%; | 45 proxy_pass http://127.0.0.1:8081; |
46 proxy_cache NAME; | 46 proxy_cache NAME; |
47 proxy_cache_valid 200 1m; | 47 proxy_cache_valid 200 1m; |
48 } | 48 } |
49 location /min_uses { | 49 location /min_uses { |
50 proxy_pass http://127.0.0.1:%%PORT_1%%/; | 50 proxy_pass http://127.0.0.1:8081/; |
51 proxy_cache NAME; | 51 proxy_cache NAME; |
52 proxy_cache_valid 200 1m; | 52 proxy_cache_valid 200 1m; |
53 proxy_cache_min_uses 2; | 53 proxy_cache_min_uses 2; |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 server { | 57 server { |
58 listen 127.0.0.1:%%PORT_1%%; | 58 listen 127.0.0.1:8081; |
59 server_name localhost; | 59 server_name localhost; |
60 | 60 |
61 location / { | 61 location / { |
62 } | 62 } |
63 } | 63 } |