In OpenShift both mydomain.com and www.mydomain.com are configured as aliasses of myapp-rhcloud.com. Same for cloudflare.
I tried with the following coment: DNS settings openshift cloudflare
'www.mydomain.com' work fine, but the naked domain 'mydomain.com' redirects me to an error page that says: "The connection is not private. It is possible that unauthorized users are trying to steal your information" the Link change from example.com to https:// example.com/app with the 'https' denied.
Also an icon appears next to the CNAME in CloudFlare:
"Flattening CNAME will be applied to this record since root (ie apex) CNAME records are limited by the DNS specification." I dont understand that.
I modified the rules in cloudflare like this:
redirects "http:// example.com/*" to "http:// www.example.com/$1" with '301' for the redirect type
I'm missing something?