【问题标题】:Apache2 ProxyPass Error500Apache2 ProxyPass 错误 500
【发布时间】:2018-03-25 22:22:15
【问题描述】:

我的服务器上运行了一个 OnlyOffice 文档服务器,该服务器通过 Docker 绑定到端口 8888。现在我想使用 Let's Encrypt 证书来确保安全连接(自签名证书不起作用)。我在 Apache 中使用以下配置将 office.example.org 重写为 office.example.org:8888 但它会抛出错误 500

<VirtualHost *:443>
 ServerName office.example.org
  ProxyPreserveHost On
    ProxyPass / https://localhost:8888/
    ProxyPassReverse / https://localhost:8888/ 
</VirtualHost>

所有必要的模块都已启用。 有没有人知道如何解决这个问题或解决 Let's Encrypt 问题的不同想法?

【问题讨论】:

    标签: apache onlyoffice


    【解决方案1】:

    将以下行添加到 Apache 配置文件

    SSLEngine on
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    

    并启用 with Proxy HTTP 模块

    sudo a2enmod proxy_http
    

    成功了!

    【讨论】:

    • 你好,是添加到apache2.conf
    猜你喜欢
    • 2013-06-03
    • 2016-08-31
    • 2011-08-08
    • 2017-10-17
    • 2015-09-30
    • 1970-01-01
    • 1970-01-01
    • 2018-02-12
    • 2016-08-13
    相关资源
    最近更新 更多