ssl - 502 proxy Error [从远程服务器读取错误]

标签 ssl https apache2 ubuntu-14.04 proxypass

我的 https 站点收到一条错误消息。当我使用我的 http 站点时,它在 Ubuntu 14.04 上的 APACHE2 上运行良好。

enter image description here

这是我的 https 站点的虚拟主机配置

<VirtualHost _default_:443>
             SSLProxyEngine On
             ProxyRequests Off
             ProxyPreserveHost On
             RequestHeader set Front-End-Https "On"

            servername jenkins.mydomain.com
            Proxypass / https://192.168.0.93:8080/  Keepalive=on
            ProxypassReverse / https://jenkins.mydomain.com/


            SSLEngine on
            SSLCertificateFile      /etc/apache2/ssl/wildcard.crt
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
    </virtualHost>

请告诉我哪里做错了。

最佳答案

我已经解决了我的问题。我的虚拟主机配置几乎没有错误。 下面是带有 ssl 的新虚拟主机配置

    <VirtualHost *:443>
        SSLEngine On
        SSLCertificateFile /etc/apache2/ssl/wildcard.crt
        ServerAdmin ITSupport@Mydomain.com
        ProxyRequests Off
        ProxyPreserveHost On
        AllowEncodedSlashes NoDecode

        <Proxy *>
                Order deny,allow
                Allow from all
        </proxy>

        ServerName jenkins.mydomain.com
        ProxyPass / http://192.168.0.93:8080/ nocanon
        ProxyPassReverse / http://jenkins.mydomain.com/
        RequestHeader set X-Forwarded-Proto "https"
        RequestHeader set X-Forwarded-Port "443"

</virtualhost>

关于ssl - 502 proxy Error [从远程服务器读取错误],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39342734/

相关文章:

ruby - 通过强制使用 Ruby 中的用户代理获取 https 页面的 HTML 源代码

https - 从 HTTP 迁移到 HTTPS 和 Google Analytics 推荐

ssl - 错误 102 nginx SSL

django - 具有 SSL 配置的 Apache 不适用于 Django 应用程序的 WSGI 配置

mod-rewrite - 无法匹配 mod_rewrite 中的 %2F

ruby-on-rails - SSL_connect returned=1 errno=0 state=SSLv3 读取服务器证书 B : certificate verify failed

java - Spring Boot 现有域 .cert 文件实现我的应用程序(SSL)

java.net.SocketException : Connection reset for inputstream 异常

java - 从 Java 客户端到 .NET 服务器建立 SSL 连接时出错

tomcat - 具有两个 Tomcat 实例的 Apache 2 HTTPS 反向代理?