Mercurial > hg > nginx-tests
comparison proxy_cache.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 | 03e6f4bd35fd |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
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:8080; | 41 listen 127.0.0.1:%%PORT_0%%; |
42 server_name localhost; | 42 server_name localhost; |
43 | 43 |
44 gzip on; | 44 gzip on; |
45 gzip_min_length 0; | 45 gzip_min_length 0; |
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 NAME; | 50 proxy_cache NAME; |
51 | 51 |
52 proxy_cache_valid 200 302 2s; | 52 proxy_cache_valid 200 302 2s; |
53 proxy_cache_valid 301 1d; | 53 proxy_cache_valid 301 1d; |
62 | 62 |
63 add_header X-Cache-Status $upstream_cache_status; | 63 add_header X-Cache-Status $upstream_cache_status; |
64 } | 64 } |
65 } | 65 } |
66 server { | 66 server { |
67 listen 127.0.0.1:8081; | 67 listen 127.0.0.1:%%PORT_1%%; |
68 server_name localhost; | 68 server_name localhost; |
69 | 69 |
70 location / { | 70 location / { |
71 limit_rate 512; | 71 limit_rate 512; |
72 } | 72 } |