I have a RoR3 server deployed to Heroku (With some webservices).
I have a domain http://www.domain.com
What I want to do is that http://www.domain.com/api points directly to my Heroku url.
How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Pointing a domain to heroku is simple with the custom domains add-on. However, pointing just an /api route to Heroku is problematic as DNS does not work that way.
Ideally you want to look at something like api.domain.com if you’re looking to host http://www.domain.com elsewhere.