https://github.com/chobits/ngx_http_proxy_connect_module
1、按照说明文档下载对应的nginx patch、module,编译安装nginx
$ wget http://nginx.org/download/nginx-1.14.2.tar.gz
$ tar -xzvf nginx-1.14.2.tar.gz
$ cd nginx-1.14.2/
// 参考说明文档下载适合此版本nginx的patch
$ wget https://github.com/chobits/ngx_http_proxy_connect_module/blob/master/patch/proxy_connect_1014.patch
// 下载ngx_http_proxy_connect_module,解压到此目录
$ ll
-rw-r--r-- 1 root root 376 Jun 15 11:15 Makefile
drwxr-xr-x 5 root root 4096 Jun 15 11:13 ngx_http_proxy_connect_module-master
-rw-r--r-- 1 root root 9849 Jun 15 11:13 proxy_connect_1014.patch
$ patch -p1 < proxy_connect_1014.patch
$ ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=ngx_http_proxy_connect_module-master
$ make && make install
2、nginx配置