flask app with subdomain on openshift -


i created python flask app, , deployed openshift. can accessed @

https://ledgerware-hj.rhcloud.com 

now i'd use subdomain names language code. on local pc added following line c:\windows\system32\drivers\etc\hosts file:

127.0.0.1 ledgerware.dev 127.0.0.1 en.ledgerware.dev 

i configured flask app:

server_name = 'ledgerware.dev:5000' 

everything works if browse http://en.ledgerware.dev:5000. openshift configured flask app be:

server_name = 'ledgerware-hj.rhcloud.com' 

but, https://en.ledgerware-hj.rhcloud.com won't work, because there must other settings done. else should make work?

here's blog related issue has suggestions: https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way

can please take @ , see if helps?


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -