Apparently the only directive I was missing is SSLProxyCheckPeerName off. Now it works.
SSLProxyCheckPeerName off