I’m setting up a new webshop with Magento, to offload ssl and security I put cloudflare in front with the cloudflare plugin installed. The webshop itself does not have a certificate, as the varnish cache server does not support that. However when I switch on flexible ssl on cloudflare I get into a redirect loop.
Is there a way around that? Or should I put another ssl proxy in front of varnish (cloudflare -> ssl proxy -> varnish cache server -> apache hosting Magento)?