Mercurial > hg > nginx-tests
comparison proxy_cache_path.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 | 6c0a5903d0ae |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
41 keys_zone=OFF:1m use_temp_path=off; | 41 keys_zone=OFF:1m use_temp_path=off; |
42 proxy_cache_path %%TESTDIR%%/cache4 levels=1:2 | 42 proxy_cache_path %%TESTDIR%%/cache4 levels=1:2 |
43 keys_zone=LEVELS:1m use_temp_path=off; | 43 keys_zone=LEVELS:1m use_temp_path=off; |
44 | 44 |
45 server { | 45 server { |
46 listen 127.0.0.1:8080; | 46 listen 127.0.0.1:%%PORT_0%%; |
47 server_name localhost; | 47 server_name localhost; |
48 | 48 |
49 location / { | 49 location / { |
50 proxy_pass http://127.0.0.1:8081; | 50 proxy_pass http://127.0.0.1:%%PORT_1%%; |
51 | 51 |
52 proxy_cache $arg_c; | 52 proxy_cache $arg_c; |
53 | 53 |
54 proxy_cache_valid any 1m; | 54 proxy_cache_valid any 1m; |
55 | 55 |
56 add_header X-Cache-Status $upstream_cache_status; | 56 add_header X-Cache-Status $upstream_cache_status; |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 server { | 60 server { |
61 listen 127.0.0.1:8081; | 61 listen 127.0.0.1:%%PORT_1%%; |
62 server_name localhost; | 62 server_name localhost; |
63 | 63 |
64 location / { | 64 location / { |
65 } | 65 } |
66 } | 66 } |