Openshift app redirecting to https://domain_name/app

不羁岁月 提交于 2019-12-12 09:31:36

问题


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



来源:https://stackoverflow.com/questions/22538185/openshift-app-redirecting-to-https-domain-name-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!