[英]Node.js With Apache , Proxy Error : The proxy server could not handle the request Reason: Error during SSL Handshake with remote server
我正在将 node.js 与 Apache 一起使用。 我们通过 CPanel 在 eideabox.com 上应用 SSL,但没有 ssl 工作正常但 SSL 不起作用。
下面我们提到节点代码和配置文件代码,下面提到错误 massege PrProxy 错误:代理服务器无法处理请求原因:与远程 serveroxy 的 SSL 握手过程中出错 错误:代理服务器无法处理请求原因:SSL 握手过程中出错带远程服务器
配置文件阿帕奇
<VirtualHost 132.148.158.82:443>
ServerName eideabox.com
ServerAlias www.eideabox.com
DocumentRoot /home/eideabox/myapp/
Options -Indexes
ErrorDocument 503 /check.html
ProxyPass /check.html !
ProxyPass / https://eideabox.com:3006
ProxyPassReverse / https://eideabox.com:3006
ProxyPreserveHost On
SSLEngine On
SSLProxyEngine On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /home/eideabox/ssl/certs/eideabox_com_b197e_c6311_1612597094_7e97c1d74286789f7015a7f48eafcfe0.crt
SSLCertificateKeyFile /home/eideabox/ssl/keys/b197e_c6311_43b35dcc21272dfd87cddf03acbf9dc7.key
SSLCertificateChainFile /home/eideabox/ssl/certs/eideabox_com_b197e_c6311_1612597094_7e97c1d74286789f7015a7f48eafcfe0.crt
</VirtualHost>
我只是找到解决方案:
可能你的 nodejs 服务器没有 ssl 配置,所以需要使用 'http': ProxyPass / http://eideabox.com:3006
如果您在 nodejs 服务器中配置 ssl(使用 require('https')),您可以使用 'https':ProxyPass / https://eideabox.com:3006
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.