DNS Settings: OpenShift with CloudFlare / rhcloud

前端 未结 2 1711
清酒与你
清酒与你 2020-12-15 11:48

I am trying to set up DNS forwarding on CloudFlare, to my Openshift page (the-domain.rhcloud.com).

But when I go into the CloudFlare DNS settings and try to change t

2条回答
  •  死守一世寂寞
    2020-12-15 12:13

    If you want your domain name to start with https://www, take a look at the steps bellow that worked for me.

    Let's say we want to configure cloudflare and openshift for this domain name: example.org.

    Cloudflare

    DNS page

    I have two records set:

    1. Type: CNAME Name: example.org Value: example-example.rhcloud.com (you should see CNAME flattening sign for this one)

    2. Type: CNAME Name: www Value: example.org

    "Page rules" page

    Two rules:

    1. http://www.example.org/* Settings: Always use HTTPS

    2. example.org/* Settings: Forwarding url, 301 — Permanent redirect, https://www.example.org/$1

    OpenShift

    Add one alias:

    • www.example.org

提交回复
热议问题