Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Hosting apps under /subfolders

Would it possible to host multiple app deployments on the same domain, under different subfolders? E.g.
domain.com/app1
domain.com/app2

Since each app is on a different IP, I guess it would have to be run through a proxy / load balancer, if at all possible?

  1. I think it is unlikely that we would support a routing scenario like the one you outline. You might want to consider making you one app multi-tenant so that it can support multiple tenants, if that is your use case.

    Otherwise you can use subdomains, e.g.
    app1.domain.com
    app2.domain.com

    Let us know if you have other questions.
    Michael

  2. friism closed this discussion on 13 Jul, 2011 12:09 AM.

  3. freshcode re-opened this discussion on 13 Jul, 2011 11:13 AM

  4. Thanks, Michael. Will go for multi-tenancy.

    What's the limit on the number of 20MB MSSQL databases per app?

    Best
    P.

  5. Hi P.

    you can see my answer on Multi tenancy apps on StackOverflow maybe it would help you starting...

  6. Hi P,

    The current limit is one database of each type (MySQL or MSSQL) per application. We might increase this later on, but until then you could try and use a 10GB database if that'll fit with your database architecture.

    Best,
    Rune

  7. rune closed this discussion on 13 Jul, 2011 04:04 PM.

  8. freshcode re-opened this discussion on 13 Jul, 2011 04:20 PM

  9. Hi Rune

    The space is not a problem, but I would like to have a separate database for each tenant (presently 3). If I have start dealing with table naming schemas, then database version control gets really messy and I might as well deal with deployment on my dedicated servers.

    I really don't want to move to sub-domains (tenant1.site.com, tenant2.site.com) to keep SEO and pre-existing links (site.com/tenant1, site.com/tenant2).

    Could we sort something out to allow multiple, small MSSQL databases? It's a light load and 20MB per DB is plenty.

    If not, please quote me on a dedicated database server.

    Best
    P.

  10. We don't want to give you a hard time on this, but if you're making you app multi-tenant, you should probably do the same for the database. All your tenants will be running of the same codebase now, so they should be able run using the same database and schema (perhaps with a tenant-table or something). This would save you the headache of having to maintain multiple databases with varying schemas.

    Let us know if you have any concerns.
    Michael

  11. friism closed this discussion on 13 Jul, 2011 08:38 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac