2016-09-06 118 views
4

我收到了與我的https站點的錯誤消息。當我正在使用我的http站點時,它在Ubuntu 14.04上的APACHE2上工作正常。502代理錯誤[從遠程服務器讀取錯誤]

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> 

,請告訴我,即時通訊做的錯誤。

回答

4

我解決了我的問題。我在虛擬主機配置中犯了一些錯誤。 帶有SSL的新虛擬主機配置低於

<VirtualHost *:443> 
     SSLEngine On 
     SSLCertificateFile /etc/apache2/ssl/wildcard.crt 
     ServerAdmin [email protected] 
     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> 
相關問題