Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache2 ProxyPass错误500_Apache_Onlyoffice - Fatal编程技术网

Apache2 ProxyPass错误500

Apache2 ProxyPass错误500,apache,onlyoffice,Apache,Onlyoffice,我的服务器上运行一个OnlyOffice文档服务器,该服务器通过Docker绑定到8888端口。现在我想使用Let's Encrypt证书来确保安全连接(自签名证书将不起作用)。我在Apache中使用以下配置将office.example.org重写为office.example.org:8888,但它给我带来了一个错误500 <VirtualHost *:443> ServerName office.example.org ProxyPreserveHost On P

我的服务器上运行一个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>

ServerName office.example.org
代理主机
ProxyPass/https://localhost:8888/
ProxyPassReverse/https://localhost:8888/ 
所有必要的模块都已启用。
有没有人知道如何解决这个问题,或者有什么不同的想法来解决Let's Encrypt问题?

在Apache配置文件中添加以下行

SSLEngine on
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
以及使用启用代理HTTP模块

sudo a2enmod proxy_http

我成功了

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

SSLEngine on
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
以及使用启用代理HTTP模块

sudo a2enmod proxy_http

我成功了

嗨,这是否意味着添加到
apache2.conf
嗨,这是否意味着添加到
apache2.conf