I'm planning app, that needs to have hundreds (maybe thousands) of domain attached. Is it possible with Heroku?
Asked
Active
Viewed 124 times
0
-
offtopic, perhaps you should ask heroku – Keith Nicholas Mar 27 '13 at 22:06
-
came here from link posted there – Max Filippov Mar 27 '13 at 22:08
-
hmmm, odd, problem is, its not a programming question. Do they have their own forums? – Keith Nicholas Mar 27 '13 at 22:09
-
Unfortunately I do not know... Came here from link on this page: https://help.heroku.com/ (Ask the community) – Max Filippov Mar 27 '13 at 22:10
-
I need multi tenancy support for my app and so I try to understand could I use Heroku or should rent VDS. – Max Filippov Mar 27 '13 at 22:13
-
perhaps have a look at http://stackoverflow.com/questions/5916625/writing-a-multi-tenant-rails-3-app-for-deployment-on-heroku – Keith Nicholas Mar 27 '13 at 22:18
2 Answers
2
As far as I know, there is no limit on the number of domains. However, if the number of domains starts to increase to more than a 10/20 domains, then you may consider to use a wildcard domain and handle the routing logic inside your application.

Simone Carletti
- 173,507
- 49
- 363
- 364
-
I read that article, as I understood, wildcard domain concerns subdomains and I need exactly new domains (I'm designing online store service). – Max Filippov Mar 27 '13 at 22:33
0
You can add any number of domains to a single app by repeating the add command with different values

noz
- 129
- 1
- 5
-
-
As far as I know, you must configure your DNS to point your application hostnames to Heroku manually, so you should have your own DNS to do this (it is not a job for Rails app) – noz Mar 27 '13 at 22:35
-
Well, as I suppose to know all I need to create a new zone is to make changes in several text files (so why it is not job for Rails?), the question is: would Heroku provide me access to these or not. – Max Filippov Mar 27 '13 at 22:38
-
DNS translates easily memorised domain names to the numerical IP addresses needed for the purpose of locating computer services and devices worldwide. You can manage you DNS with a Rails app (f.e. PowerDNS on Rails). But you still need to have it. In fact there is no DNS included to dino where you deployed a Rails app at Heroku. When an app has a custom domain assigned and your DNS is configured to point at Heroku, the routing mesh will take each request to the custom domain and route it to the assigned app – noz Mar 27 '13 at 22:48