Mercurial > hg > nginx-tests
comparison proxy_cache_variables.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 |
---|---|
39 keys_zone=NAME1:1m; | 39 keys_zone=NAME1:1m; |
40 proxy_cache_path %%TESTDIR%%/cache2 levels=1:2 | 40 proxy_cache_path %%TESTDIR%%/cache2 levels=1:2 |
41 keys_zone=NAME2:1m; | 41 keys_zone=NAME2:1m; |
42 | 42 |
43 server { | 43 server { |
44 listen 127.0.0.1:8080; | 44 listen 127.0.0.1:%%PORT_0%%; |
45 server_name localhost; | 45 server_name localhost; |
46 | 46 |
47 location / { | 47 location / { |
48 proxy_pass http://127.0.0.1:8081; | 48 proxy_pass http://127.0.0.1:%%PORT_1%%; |
49 | 49 |
50 proxy_cache $arg_c; | 50 proxy_cache $arg_c; |
51 | 51 |
52 proxy_cache_valid any 1m; | 52 proxy_cache_valid any 1m; |
53 | 53 |
54 add_header X-Cache-Status $upstream_cache_status; | 54 add_header X-Cache-Status $upstream_cache_status; |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 server { | 58 server { |
59 listen 127.0.0.1:8081; | 59 listen 127.0.0.1:%%PORT_1%%; |
60 server_name localhost; | 60 server_name localhost; |
61 | 61 |
62 location / { | 62 location / { |
63 } | 63 } |
64 } | 64 } |