简体   繁体   中英

Point DNS to subdirectory on heroku rails app?

We have a rails app that generates subdirectories for a user example.herokuapp.com/user1directory & example.herokuapp.com/user2directory

Is there a way to point DNS for a url to that specific directory of the rails app, without any silly hacks?

Ideally what we need is user1website -> example.herokuapp.com/user1directory but masks it while showing any further subdirectories / pages.

Any help will be greatly appreciated.

Thank you.

That's imposible without hacks & proxies. Just because HTTP and DNS are not at the same level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM