我有 2 个 docker 容器,1 个运行 apache2,1 个运行 python api。 在非 https 中,我能够建立连接,以便将 80 上的请求引导到运行 python api 的 docker 容器。当我启用 HTTPS 时,请求数为 400(错误请求)。 非常感谢任何帮助。这是我的虚拟主机文件。
<VirtualHost *:443>
ServerName domain.com
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://172.17.0.1:8000/
ProxyPassReverse / http://172.17.0.1:8000/
SSLEngine on
SSLCertificateFile "/usr/local/apache2/conf/.crt"
SSLCertificateKeyFile "/usr/local/apache2/conf/.key"
</VirtualHost>
答案 0 :(得分:0)
Apache 日志应该包含更详细的错误,但是根据您发布的配置,我会检查“/usr/local/apache2/conf/.crt”和“/usr/local/apache2/conf/.key " 存在。