Mercurial > hg > nginx-tests
comparison gunzip.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 | cbd26265d9a3 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
38 | 38 |
39 http { | 39 http { |
40 %%TEST_GLOBALS_HTTP%% | 40 %%TEST_GLOBALS_HTTP%% |
41 | 41 |
42 server { | 42 server { |
43 listen 127.0.0.1:8080; | 43 listen 127.0.0.1:%%PORT_0%%; |
44 server_name localhost; | 44 server_name localhost; |
45 location / { | 45 location / { |
46 gunzip on; | 46 gunzip on; |
47 gzip_vary on; | 47 gzip_vary on; |
48 proxy_pass http://127.0.0.1:8081/; | 48 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
49 proxy_set_header Accept-Encoding gzip; | 49 proxy_set_header Accept-Encoding gzip; |
50 } | 50 } |
51 location /error { | 51 location /error { |
52 error_page 500 /t1; | 52 error_page 500 /t1; |
53 return 500; | 53 return 500; |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 server { | 57 server { |
58 listen 127.0.0.1:8081; | 58 listen 127.0.0.1:%%PORT_1%%; |
59 server_name localhost; | 59 server_name localhost; |
60 | 60 |
61 location / { | 61 location / { |
62 default_type text/plain; | 62 default_type text/plain; |
63 gzip_static on; | 63 gzip_static on; |