I have hosted an app on Redhat Open shift. I didn't change anything but it started redirecting to https://www.plovist.com/app and throwing 404 error. Can anyone help me in solving this?
I logged into Godaddy(my DNS) account and found out that in Cnames(Alias) www
wasn't pointing to mydjango-plovist.rhcloud.com
(URL given by Openshift).
Also I pinged mydjango-plovist.rhcloud.com
and it gave a different IP Address than one I had written in A Record.
So I pointed in Cname to mydjango-plovist.rhcloud.com
and in A Record pointed www to new IP Address I got after pinging mydjango-plovist.rhcloud.com
.
My app started
So Openshift changed their IP Address without telling the users. And also there was some problem in my Godaddy Account.
example.com
to www.example.com
, then create a CNAME alias from www.example.com
to app-domain.rhcloud.com
. This means the IP can change and your forwarding won't be affected. –
Doggone Make sure that you have correctly added your alias to your application (www.plovist.com)
RewriteCond %{HTTP_HOST} !^www\. [NC]
–
Motorboating I logged into Godaddy(my DNS) account and found out that in Cnames(Alias) www
wasn't pointing to mydjango-plovist.rhcloud.com
(URL given by Openshift).
Also I pinged mydjango-plovist.rhcloud.com
and it gave a different IP Address than one I had written in A Record.
So I pointed in Cname to mydjango-plovist.rhcloud.com
and in A Record pointed www to new IP Address I got after pinging mydjango-plovist.rhcloud.com
.
My app started
So Openshift changed their IP Address without telling the users. And also there was some problem in my Godaddy Account.
example.com
to www.example.com
, then create a CNAME alias from www.example.com
to app-domain.rhcloud.com
. This means the IP can change and your forwarding won't be affected. –
Doggone I have the same problem and solved by just restarting the openshift application. After that everythink work as expected.
See also this guide for information on how to change CNAME and create an alias.
Had this issue today after some cname changes. For me it helped to flush the dns chache
ipconfig /flushdns
Do anything suggested before or just patiently wait for a hour and check. I think it is just temporary problem of DNS servers. I am sure not only in my case :)
I resolved it after 2 hours. The issue was, i was missing "www." in openshift alias domain settings. (previously it was domain.com instead of www.domain.com)
I entered www.domain.com and after updating wordpress siteurl/home settings it worked fine.
These comments really helped: https://mcmap.net/q/824757/-dns-settings-openshift-with-cloudflare-rhcloud
© 2022 - 2024 — McMap. All rights reserved.