File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,11 @@ plan tests => repeat_each() * (blocks() * 3 + 3 * 1);
10
10
our $http_config = <<'_EOC_' ;
11
11
proxy_cache_path /tmp/ngx_cache_purge_cache keys_zone=test_cache:10m;
12
12
proxy_temp_path /tmp/ngx_cache_purge_temp 1 2;
13
-
14
- server {
15
- listen 8100;
16
-
17
- location / {
18
- root /etc;
19
- }
20
- }
21
13
_EOC_
22
14
23
15
our $config = <<'_EOC_' ;
24
16
location /proxy {
25
- proxy_pass http ://127.0.0.1:8100/ ;
17
+ proxy_pass $scheme ://127.0.0.1:$server_port/etc/passwd ;
26
18
proxy_cache test_cache;
27
19
proxy_cache_key $uri$is_args$args;
28
20
proxy_cache_valid 3m;
@@ -32,6 +24,10 @@ our $config = <<'_EOC_';
32
24
location ~ /purge(/.*) {
33
25
proxy_cache_purge test_cache $1$is_args$args;
34
26
}
27
+
28
+ location = /etc/passwd {
29
+ root /;
30
+ }
35
31
_EOC_
36
32
37
33
worker_connections(128);
You can’t perform that action at this time.
0 commit comments