Skip to content

Commit 320e96f

Browse files
authored
Merge pull request chobits#127 from chobits/for_pull_request
updated README.md: reorder chapters
2 parents f115508 + 34995d1 commit 320e96f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,29 @@ $ patch -d build/nginx-1.15.8/ -p 1 < /path/to/ngx_http_proxy_connect_module/pat
239239
$ make && make install
240240
```
241241

242+
Test Suite
243+
==========
244+
245+
* To run the whole test suite:
246+
247+
```bash
248+
$ hg clone http://hg.nginx.org/nginx-tests/
249+
$ export TEST_NGINX_BINARY=/path/to/nginx/binary
250+
$ prove -v -I /path/to/nginx-tests/lib /path/to/ngx_http_proxy_connect_module/t/
251+
```
252+
253+
Error Log
254+
=========
255+
256+
This module logs its own error message beginning with `"proxy_connect:"` string.
257+
Some typical error logs are shown as following:
258+
259+
* The proxy_connect module tries to establish tunnel connection with backend server, but the TCP connection timeout occurs.
260+
261+
```
262+
2019/08/07 17:27:20 [error] 19257#0: *1 proxy_connect: upstream connect timed out (peer:216.58.200.4:443) while connecting to upstream, client: 127.0.0.1, server: , request: "CONNECT www.google.com:443 HTTP/1.1", host: "www.google.com:443"
263+
```
264+
242265
Directive
243266
=========
244267

@@ -337,29 +360,6 @@ In order for this parameter to work, it is usually necessary to run nginx worker
337360

338361
NOTE: If using `set $<nginx variable>` and `proxy_connect_bind $<nginx variable>` together, you should use `proxy_connect_rewrite.patch` instead, see [Install](#install) for more details.
339362

340-
Test Suite
341-
==========
342-
343-
* To run the whole test suite:
344-
345-
```bash
346-
$ hg clone http://hg.nginx.org/nginx-tests/
347-
$ export TEST_NGINX_BINARY=/path/to/nginx/binary
348-
$ prove -v -I /path/to/nginx-tests/lib /path/to/ngx_http_proxy_connect_module/t/
349-
```
350-
351-
Error Log
352-
=========
353-
354-
This module logs its own error message beginning with `"proxy_connect:"` string.
355-
Some typical error logs are shown as following:
356-
357-
* The proxy_connect module tries to establish tunnel connection with backend server, but the TCP connection timeout occurs.
358-
359-
```
360-
2019/08/07 17:27:20 [error] 19257#0: *1 proxy_connect: upstream connect timed out (peer:216.58.200.4:443) while connecting to upstream, client: 127.0.0.1, server: , request: "CONNECT www.google.com:443 HTTP/1.1", host: "www.google.com:443"
361-
```
362-
363363
Variables
364364
=========
365365

0 commit comments

Comments
 (0)