Mercurial > hg > nginx-tests
comparison proxy_cache.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 |
---|---|
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 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:%%PORT_1%%; | 48 proxy_pass http://127.0.0.1:8081; |
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:%%PORT_1%%; | 67 listen 127.0.0.1:8081; |
68 server_name localhost; | 68 server_name localhost; |
69 | 69 |
70 location / { | 70 location / { |
71 limit_rate 512; | 71 limit_rate 512; |
72 } | 72 } |