Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to proxy requests from an SSL site via a non-SSL site. My Apache httpd.conf looks like this:

    ProxyPass /

So, when I visit, I expect apache to make a request to and send me the the page it fetched.

Instead, I get a 500 error, and in the error log, I see:

[error] proxy: HTTPS: failed to enable ssl support for (

Presumably I'm missing a directive here. Which might it be?

Never mind the security implications. I fully understand the risks.

share|improve this question
Which version of Apache are you using? – Sam Halicke Nov 15 '09 at 1:40
up vote 42 down vote accepted

You'll need mod_ssl, mod_proxy and optionally mod_rewrite. Depending on your distribution and Apache version you may have to check if mod_proxy_connect and mod_proxy_http are loaded as well.

The directives for enabling SSL proxy support are in mod_ssl:

    SSLProxyEngine On
    SSLProxyCheckPeerCN on
    SSLProxyCheckPeerExpire on
    ProxyPass /
    ProxyPassReverse /

IIRC you can also use:

    RewriteRule / [P]    # don't forget to setup SSLProxy* as well
share|improve this answer
Thanx, the missing entry was "SSLProxyEngine" for me... +1 – hurikhan77 Jan 24 '11 at 14:25
SSLProxyCheckExpire should be SSLProxyCheckPeerExpire – CodeReaper Sep 18 '12 at 9:30
Directive fixed. – Sam Halicke Sep 22 '12 at 4:26
But I got this error: Invalid command 'SSLProxyEngine', perhaps misspelled or defined by a module not included in the server configuration. Please help! – DerekY Dec 15 '14 at 3:01
Do you have mod_ssl installed? – Mar 13 '15 at 0:19

In Apache 1.x, mod_ssl would fix up ProxyPass. Do you have mod_ssl installed?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.