Score:0

Connection Refused to all sites using ProxyPass HTTPS 443

in flag
Zak

I am trying to set up proxy forwarding for a https site that I want to move to another internal server. I want the remote server to handle the certificates as well.

The issue is, when using the configuration below, all 1000 websites go down. Not just the site in question "myfunkywebsite.com". In the browser I get "Connection Refused" for all 1000 websites. So I think it's a configuration error. Although when I run sudo apachectl configtest it comes back with Syntax OK.

Can anybody see what I am doing wrong here? After exhaustive search on SO, ServerFault, and other platforms, I cannot for the life of me see what's wrong with this configuration.

It is also worth noting, that if I point the domain "https://myfunkywebsite.com" DIRECTLY at the 10.0.0.3 Server .. The certificates load and the nice little lock is displayed in the browser.

<VirtualHost *:443>
    ServerName myfunkywebsite.com

    ProxyRequests Off
    <Proxy *:443>
        Order deny,allow
        Allow from all
    </Proxy>

    SSLProxyEngine on
    ProxyPreserveHost On
    ProxyPass / https://10.0.0.3:443/
    ProxyPassReverse / https://10.0.0.3:443/
    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

Note that I have played with all these directives, none of which seem to make a difference:

SSLProxyEngine On
SSLProxyVerify none
SSLProxyCheckPeerCN off 
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off

Modules enabled:

mod_proxy
mod_proxy_connect
mod_proxy_html
mod_proxy_http

NOTE

I found that it IS in fact some sort of configuration error on the proxy server. Am I supposed to have SSL certs on BOTH servers? I was hoping to have the Proxy server be just that, a passthrough.

Failed to configure at least one certificate and key for myfunkywebsite.com:80
SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: EC PARAMETERS) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
SSL Library Error: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no certificate assigned
Fatal error initialising mod_ssl, exiting.
Configuration Failed, exiting
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.