nginx 正向代理http和https

nginx正向代理默认只支持http,不支持https,需借助第三方模块“ngx_http_proxy_connect_module”来实现(https://github.com/chobits/ngx_http_proxy_connect_module)

yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel

patch -p1 

如果碰到这种错误

make[1]: *** No rule to make target ‘objs/addon/ngx_http_mytest2/ngx_http_mytest2_module.o’, needed by ‘objs/nginx’. Stop.

1.确认上面安装的nginx模块是否都正确

2.ngx_http_proxy_connect_module-master 如果是从windows上拷过去,可能会有些文件不正确,需仔细确认

你可能感兴趣的:(linux,nginx,http,https)