ngx_http_proxy_connect_module icon indicating copy to clipboard operation
ngx_http_proxy_connect_module copied to clipboard

I also have the same problem.

Open ghost opened this issue 1 year ago • 4 comments

          > I have the same problem

无法启用 ssl

....

问题

当我关闭ssl 时(配置文件第一行删除ssl参数)代理工作正常 当我启用ssl时(如上配置)出现以上的测试问题 我看您这边配置成功了,是可以支持 客户端 -> HTTPS -> 代理服务 -> HTTP/HTTPS -> 目标服务器 , 但是我不知道问题出在哪里,能否给出一些意见。谢谢

I have the same problem too. "client sent plain HTTP request to HTTPS port while reading client request headers,"

hi, your configuration is right, but ur constructed curl command is not right, see my latest documentation here: https://github.com/chobits/ngx_http_proxy_connect_module#example-for-curl-connect-request-in-https

image

$ curl https://nginx.org/ -sv -o/dev/null -x https://<your-nginx-ip>:<your-nginx-port> --proxy-insecure

Originally posted by @chobits in https://github.com/chobits/ngx_http_proxy_connect_module/issues/22#issuecomment-1455553322

ghost avatar Jul 20 '24 15:07 ghost

Bellow is my nginx`config,

image

and I let 'biienu.crt' file work as a trusted certificate in "/etc/pki/ca-trust/source/anchors" directory.

When I was testing, I encountered the following problem: image

image

can you help me to solve it?

ghost avatar Jul 20 '24 16:07 ghost

Curl error reports showed that it has no --proxy-insecure command. I think you should try to resolve it from this point, which is beyond me

chobits avatar Jul 21 '24 10:07 chobits

I encountered the following problem when useing the '-k' parameter instead of the '--proxy-insecure' parameter. so what is the reason for this?

image

ghost avatar Jul 21 '24 11:07 ghost

I encountered the following problem when useing the '-k' parameter instead of the '--proxy-insecure' parameter. so what is the reason for this?

image

@chobits

ghost avatar Jul 21 '24 11:07 ghost

the user has closed its account, we may not contact him again

chobits avatar Nov 26 '24 02:11 chobits