1. Openshift APP Alias Configuration
Open you openshift APP. Add www.51sec.org as your only Alias for this app.
Many people messed around this step since they think they thought plain or naked domain 51sec.org should be added too.
There are two types of error if you failed to keep only one alias www.51sec.org here when you try to use plain / naked domain to access your Openshift Apps.
- Browsers will tell you your website page isn't working.
It has redirected you too many times. Chrome or Firefox will suggest you to try to clearing your cookies. But basically that is not the cause. Usually it caused by defined your plain / naked domain as alias in your Openshift app.
- Browsers will open https://<plain/naked domain>/app instead of your real website.
Basically Openshift will redirect you to an not existed page https://<plain/naked domain>/app. It usually caused by DNS cache on your name service provider. You will need to wait around one hour to see if issue has been resolved.
2. GoDaddy Configuration
Log into GoDaddy account and go to GoDaddy Domain Manager dashboard You will only need to add one cname type record.
CNAME Host: WWW
Points to: 51sec-johnyan.rhcould.com
TTL: keep default value
That is enough.
Some domain provider allow you to add naked domain or allow A type record forward to a URL. But GoDaddy will not. To make my plain / naked domain 51sec.org to point to www.51sec.org, I will enable forwarding feature as shown below:
Forward to: www.51sec.org
Forward Type: Permannent (301)
Settings: Forward Only
Check Update my nameservers and DNS settings to support this change.
After above two steps, your Openshit App should start to support plain / naked domain access. It may take a while to take effect , but it will work. I found before it takes effect, your plain / naked domain might still direct to https://<plain/naked domain>/app page.
References:
No comments:
Post a Comment