Apache2 SSL 握手期间的反向代理 HTTPS 错误

问题描述 投票:0回答:0

我正在将 Apache2 设置为专用网络中的“网关”。 我正在尝试使用 apache2 通过内部网络从外部转发 HTTPS 流量。

我让它与 HTTP 一起工作,但是一旦我切换到 HTTPS,它就不再工作了。

我得到的错误是:

[Tue May 02 14:52:51.347146 2023] [proxy:error] [pid 5423:tid 140612283090496] [client 100.100.100.100:17059] AH00898: Error during SSL Handshake with remote server returned by /
[Tue May 02 14:52:51.347161 2023] [proxy_http:error] [pid 5423:tid 140612283090496] [client 100.100.100.100:17059] AH01097: pass request body failed to 100.100.100.100:553 (100.100.100.100) from 100.100.100.100 ()
[Tue May 02 14:52:51.397245 2023] [proxy:error] [pid 5423:tid 140612145747520] [client 100.100.100.100:17060] AH00898: DNS lookup failure for: 100.100.100.100:553favicon.ico returned by /favicon.ico, referer: https://example.com:2230/

我的配置是这样的:


<VirtualHost *:2230>
        ServerName example.com
        ErrorLog ${APACHE_LOG_DIR}/proxy/error.log
        CustomLog ${APACHE_LOG_DIR}/proxy/access.log combined

         <Proxy *>
        Order deny,allow
        Allow from all
        Authtype Basic
        Authname "Password Required"
        AuthUserFile /etc/apache2/passwords
        Require valid-user
        </Proxy>

        SSLEngine on
        SSLProxyEngine on
        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyProtocol +TLSv1
        SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
        Include /etc/letsencrypt/options-ssl-apache.conf


        ProxyPreserveHost On
        ProxyPass / https://100.100.100.100:553
        ProxyPassReverse / https://100.100.100.100:553
</VirtualHost>

有人有什么想法可能是问题所在吗?

ssl proxy apache2 reverse-proxy mod-proxy
© www.soinside.com 2019 - 2024. All rights reserved.