Openshift app redirecting to https://domain_name/a

2019-04-18 19:20发布

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?

6条回答
Rolldiameter
2楼-- · 2019-04-18 19:52

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

ipconfig /flushdns

查看更多
Rolldiameter
3楼-- · 2019-04-18 19:53

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

查看更多
疯言疯语
4楼-- · 2019-04-18 19:57

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/

查看更多
Root(大扎)
5楼-- · 2019-04-18 20:03

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.

查看更多
劳资没心,怎么记你
6楼-- · 2019-04-18 20:09

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

查看更多
forever°为你锁心
7楼-- · 2019-04-18 20:10

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

查看更多
登录 后发表回答