chobits / ngx_http_proxy_connect_module

A forward proxy module for CONNECT request handling
BSD 2-Clause "Simplified" License
1.84k stars 498 forks source link

I also have the same problem. #316

Open ghost opened 4 months ago

ghost commented 4 months ago
          > 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 commented 4 months ago

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?

chobits commented 4 months ago

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

ghost commented 4 months ago

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 commented 4 months ago

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