How to set up your own domain on Heroku

I have deployed a Rails 3.2 app for Heroku. I would like the app to be accessible from http://myapp.mydomain.com and for the routes to be accessible from that url eg. http://myapp.mydomain.com/ModelA/1

I followed the instructions at https://devcenter.heroku.com/articles/custom-domains

When I enter http://myapp.mydomain.com into the bowser address bar, it successfully accepts me into the application.

but the url is rewritten as myapp.herokuapp.com

I have already added the domain to Heroku heroku domains:add myapp.mydomain.com

.

How do I keep a custom domain across the entire application?

+3


source to share


1 answer


It looks like a problem with your DNS setup. You should check your hosting provider to make sure your site is configured as a CNAME at proxy.heroku.com and not a redirect or whatever.



(Glad you were able to solve this!)

+2


source







All Articles