我已经在 Apache 2.4 中配置了正向代理,但是通过它发出的请求导致 400:
curl:(56)CONNECT 后从代理收到 HTTP 代码 400
# Using the proxy results in a 400
https_proxy=https://my.example.net:3443/ curl 'https://testapi1.millimanintelliscript.com/Irix/IASRequestWS.asmx?WSDL'
# Skipping the proxy but running the command from my.example.net results in a 200
curl 'https://testapi1.millimanintelliscript.com/Irix/IASRequestWS.asmx?WSDL'
我想知道代理是否没有使用 SSL,因为当我使用时curl -v
,输出包含以下行,其中提到HTTP
而不是HTTPS
:
* Establish HTTP proxy tunnel to testapi1.millimanintelliscript.com:443
可能是什么问题?这是我的代理配置my.example.net
:
Listen 3443
<VirtualHost *:3443>
ServerName my.example.net
SSLEngine on
SSLProxyEngine on
ProxyRequests on
ProxyVia off
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCertificateFile /etc/letsencrypt/live/my.example.net/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my.example.net/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/my.example.net/chain.pem
</VirtualHost>