Openshift app redirecting to https://domain_name/a

2019-04-18 19:49发布

问题:

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?

回答1:

Make sure that you have correctly added your alias to your application (www.plovist.com)



回答2:

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.



回答3:

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.

https://blog.openshift.com/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way/



回答4:

Had this issue today after some cname changes. For me it helped to flush the dns chache

ipconfig /flushdns



回答5:

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 :)



回答6:

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://stackoverflow.com/a/26337432/385377