【问题标题】:Node.js With Apache , Proxy Error : The proxy server could not handle the request Reason: Error during SSL Handshake with remote server使用 Apache 的 Node.js,代理错误:代理服务器无法处理请求原因:与远程服务器进行 SSL 握手期间出错
【发布时间】:2020-05-23 13:56:22
【问题描述】:

我正在将 node.js 与 Apache 一起使用。我们通过 CPanel 在 eideabox.com 上应用 SSL,但没有 ssl 可以正常工作,但 SSL 无法正常工作。

下面我们提到节点代码和配置文件代码, 下面提到错误按摩 PrProxy 错误:代理服务器无法处理请求原因:与远程服务器进行 SSL 握手时出错 错误:代理服务器无法处理请求原因:与远程服务器进行 SSL 握手时出错

配置文件 apache

<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>

【问题讨论】:

    标签: node.js apache server cpanel


    【解决方案1】:

    我只是找到解决方案:

    可能你的nodejs服务器没有ssl配置,所以需要使用'http': 代理通行证/http://eideabox.com:3006

    如果您在 nodejs 服务器中配置 ssl(使用 require('https')),您可以使用 'https': 代理通行证/https://eideabox.com:3006

    【讨论】:

    猜你喜欢
    • 2020-11-02
    • 2018-08-04
    • 2013-09-23
    • 2016-12-24
    • 2014-05-22
    • 2011-06-27
    • 1970-01-01
    • 2017-10-20
    • 1970-01-01
    相关资源
    最近更新 更多