Mercurial > hg > nginx-tests
comparison proxy_cache_variables.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 | 196d33c2bb45 |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
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:%%PORT_0%%; | 44 listen 127.0.0.1:8080; |
45 server_name localhost; | 45 server_name localhost; |
46 | 46 |
47 location / { | 47 location / { |
48 proxy_pass http://127.0.0.1:%%PORT_1%%; | 48 proxy_pass http://127.0.0.1:8081; |
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:%%PORT_1%%; | 59 listen 127.0.0.1:8081; |
60 server_name localhost; | 60 server_name localhost; |
61 | 61 |
62 location / { | 62 location / { |
63 } | 63 } |
64 } | 64 } |