3
votes

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?

1
Offtopic. Not a programming question. This is more hosting/dns, which is a server-side thing.Marc B
Do you have a page forwarding rule setup in CloudFlare to redirect naked domain to www subdomain?Mark B

1 Answers

2
votes

After a few days my page example.com it worked. The link in my question works right, the problem was that CloudFlare took 4 days to establish the rules associated in the CNAME.

In conclusion... just wait.