Mercurial > hg > nginx-tests
comparison proxy_cache_vary.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 | 2cd00179f4b2 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
36 | 36 |
37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m inactive=5s; | 37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m inactive=5s; |
38 proxy_cache_key $uri; | 38 proxy_cache_key $uri; |
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 add_header X-Cache-Status $upstream_cache_status; | 44 add_header X-Cache-Status $upstream_cache_status; |
45 | 45 |
46 location / { | 46 location / { |
47 proxy_pass http://127.0.0.1:8081/; | 47 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
48 proxy_cache one; | 48 proxy_cache one; |
49 } | 49 } |
50 | 50 |
51 location /replace/ { | 51 location /replace/ { |
52 proxy_pass http://127.0.0.1:8081/; | 52 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
53 proxy_cache one; | 53 proxy_cache one; |
54 } | 54 } |
55 | 55 |
56 location /revalidate/ { | 56 location /revalidate/ { |
57 proxy_pass http://127.0.0.1:8081/; | 57 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
58 proxy_cache one; | 58 proxy_cache one; |
59 proxy_cache_revalidate on; | 59 proxy_cache_revalidate on; |
60 } | 60 } |
61 | 61 |
62 location /ignore/ { | 62 location /ignore/ { |
63 proxy_pass http://127.0.0.1:8081/; | 63 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
64 proxy_cache one; | 64 proxy_cache one; |
65 proxy_ignore_headers Vary; | 65 proxy_ignore_headers Vary; |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 server { | 69 server { |
70 listen 127.0.0.1:8081; | 70 listen 127.0.0.1:%%PORT_1%%; |
71 server_name localhost; | 71 server_name localhost; |
72 | 72 |
73 gzip on; | 73 gzip on; |
74 gzip_min_length 0; | 74 gzip_min_length 0; |
75 gzip_http_version 1.0; | 75 gzip_http_version 1.0; |