comparison proxy_cache_path.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
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:%%PORT_0%%; 46 listen 127.0.0.1:8080;
47 server_name localhost; 47 server_name localhost;
48 48
49 location / { 49 location / {
50 proxy_pass http://127.0.0.1:%%PORT_1%%; 50 proxy_pass http://127.0.0.1:8081;
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:%%PORT_1%%; 61 listen 127.0.0.1:8081;
62 server_name localhost; 62 server_name localhost;
63 63
64 location / { 64 location / {
65 } 65 }
66 } 66 }