使用 mod_proxy 时 Apache 抛出“内部服务器错误”

使用 mod_proxy 时 Apache 抛出“内部服务器错误”

我正在使用以下代码和 URL 设置反向代理[https://192.168.241.104/]抛出错误。如果我删除代理,我就可以访问该 URL。

<IfModule mod_proxy.c>
    ProxyRequests Off
    <Proxy *>
        Require all granted
    </Proxy>
    # backend server and forwarded path
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    ProxyPass / https://192.168.241.104/
    ProxyPassReverse / http://192.168.241.138/
</IfModule>

编辑:SSL 日志提示以下错误:

[Thu Apr 06 06:09:14.185743 2017] [proxy:error] [pid 7497] [client 192.168.241.1:51844] AH00898: Error during SSL Handshake with remote server returned by /index.html
[Thu Apr 06 06:09:14.185754 2017] [proxy_http:error] [pid 7497] [client 192.168.241.1:51844] AH01097: pass request body failed to 192.168.241.104:443 (192.168.241.104) from 192.168.241.1 ()
[Thu Apr 06 06:09:19.232273 2017] [proxy:error] [pid 7500] (502)Unknown error 502: [client 192.168.241.1:51851] AH01084: pass request body failed to 192.168.241.104:443 (192.168.241.104)
[Thu Apr 06 06:09:19.232434 2017] [proxy:error] [pid 7500] [client 192.168.241.1:51851] AH00898: Error during SSL Handshake with remote server returned by /
[Thu Apr 06 06:09:19.232443 2017] [proxy_http:error] [pid 7500] [client 192.168.241.1:51851] AH01097: pass request body failed to 192.168.241.104:443 (192.168.241.104) from 192.168.241.1 ()
[Thu Apr 06 06:09:23.855447 2017] [proxy:error] [pid 7496] (502)Unknown error 502: [client 192.168.241.1:51855] AH01084: pass request body failed to 192.168.241.104:443 (192.168.241.104), referer: https://192.168.241.104/

相关内容