ngx_http_proxy_connect_module
ngx_http_proxy_connect_module copied to clipboard
openresty-1.17.8.2 prompt :unknown directive "proxy_connect"
cd /opt/soft/openresty-1.17.8.2 ./configure --prefix=/opt/soft/openresty --with-http_v2_module --with-http_sub_module --with-http_stub_status_module --with-luajit --add-module=/opt/soft/ngx_http_proxy_connect_module patch -d build/nginx-1.17.8/ -p 1 < /opt/soft/ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_101504.patch
server {
listen 8000;
# dns resolver used by forward proxying
resolver 223.5.5.5;
# forward proxy for CONNECT request
proxy_connect;
proxy_connect_allow 443 563;
proxy_connect_connect_timeout 10s;
proxy_connect_read_timeout 10s;
proxy_connect_send_timeout 10s;
# forward proxy for non-CONNECT request
location / {
proxy_pass http://$host;
proxy_set_header Host $host;
}
}
2020/11/03 12:10:42 [emerg] 4439#0: unknown directive "proxy_connect" in /opt/soft/openresty/nginx/conf/nginx.conf:424
use patch/proxy_connect_rewrite_1018.patch
The problem is stil
help
Nginx -V
if have ngx_http_proxy_connect_module, i recommend change the openresty to stable version. and do it again
Out of date, if you still have same problem with latest version, you can open a new issue