Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Using domain alias for more apps

Using domain alias for more apps

Scheduled Pinned Locked Moved Solved Support
domainsaliasesmulti-tenant
7 Posts 3 Posters 1.3k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      S Offline
      sclemens
      wrote on last edited by girish
      #1

      Hello,

      I use domain alias for a wordpress multisite setup. Now I want to do this with more apps (like nextcloud, matomo) to have it as follows:

      domain1.tld
      -> cloud.domain1.tld
      -> analytics.domain1.tld

      domain2.tld
      -> cloud.domain2.tld
      -> analytics.domain2.tld

      and so on. But I can't setup domain alias for more apps except wordpress.

      Is there a way doing this?

      Kind regads
      Sebastian

      girishG 1 Reply Last reply
      0
      • micmcM Offline
        micmcM Offline
        micmc
        wrote on last edited by micmc
        #2

        You might be using the free version which is limited to only using two apps at the time.

        Otherwise, unless I'm missing something you should be able to structure your domain names and apps the way you stated it.

        Huh, that's assuming you are installing a new app instance for each sub-domain, of only WP works as multisite mode afaik.

        Ignorance is not an excuse anymore!
        https://AutomateKit.com

        1 Reply Last reply
        0
        • S sclemens

          Hello,

          I use domain alias for a wordpress multisite setup. Now I want to do this with more apps (like nextcloud, matomo) to have it as follows:

          domain1.tld
          -> cloud.domain1.tld
          -> analytics.domain1.tld

          domain2.tld
          -> cloud.domain2.tld
          -> analytics.domain2.tld

          and so on. But I can't setup domain alias for more apps except wordpress.

          Is there a way doing this?

          Kind regads
          Sebastian

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @sclemens The domain alias flag is added to the app packages on a case by case basis. This is done because the app has to explicitly support "multi-tenancy" for domain aliases to work as a user expects i.e going to each domain has their set of users/permissions/data etc. WP supports this via multi-site. Some apps like kutt allow for some fancy domain setups.

          In general, as @micmc pointed out, there is no real benefit of multi-tenant setup on Cloudron. You can just install an app instance for each subdomain. Since the docker images is the same, things don't take up any more space. You can better control of resources/cpu/memory/storage, can rollback/update separately when you have separate app instances.

          1 Reply Last reply
          3
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #4

            Out of curiosity, I did investigate the two apps in question.

            • Nextcloud - https://github.com/nextcloud/all-in-one/issues/49, https://help.nextcloud.com/t/can-nc-be-multi-tenant/37171 and https://help.nextcloud.com/t/single-codebase-for-multiple-vhosts/413 suggests it doesn't support it inherently. So, it's best to just have multiple separate nextcloud installations.

            • Matomo - There's some info here - https://developer.matomo.org/guides/multi-tenants . But one requirement is multiple databases - "For Multi Tenant setup to work every tenant should have its own database schema" . While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.

            micmcM 1 Reply Last reply
            1
            • girishG girish

              Out of curiosity, I did investigate the two apps in question.

              • Nextcloud - https://github.com/nextcloud/all-in-one/issues/49, https://help.nextcloud.com/t/can-nc-be-multi-tenant/37171 and https://help.nextcloud.com/t/single-codebase-for-multiple-vhosts/413 suggests it doesn't support it inherently. So, it's best to just have multiple separate nextcloud installations.

              • Matomo - There's some info here - https://developer.matomo.org/guides/multi-tenants . But one requirement is multiple databases - "For Multi Tenant setup to work every tenant should have its own database schema" . While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.

              micmcM Offline
              micmcM Offline
              micmc
              wrote on last edited by
              #5

              @girish said in Using domain alias for more apps:

              Out of curiosity, I did investigate the two apps in question.

              • Nextcloud -
                While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.

              Which if 'works' well, imho would require a big chunk of resources, better be aware of that as well.

              Ignorance is not an excuse anymore!
              https://AutomateKit.com

              girishG 1 Reply Last reply
              1
              • micmcM micmc

                @girish said in Using domain alias for more apps:

                Out of curiosity, I did investigate the two apps in question.

                • Nextcloud -
                  While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.

                Which if 'works' well, imho would require a big chunk of resources, better be aware of that as well.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                @micmc said in Using domain alias for more apps:

                Which if 'works' well, imho would require a big chunk of resources, better be aware of that as well.

                yes, indeed. So, resource wise, it consumes the same as 2 separate app instances (roughly.. ignoring some extra apache processes).

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  sclemens
                  wrote on last edited by
                  #7

                  Thanks for your investigations!

                  In general, as @micmc pointed out, there is no real benefit of multi-tenant setup on Cloudron.

                  The biggest benefit I see is a clean dashboard. I did such a setup on other hosting platforms and never had trouble with that.

                  While an app can have multiple databases on Cloudron, we have to investigate if it's worth the trouble of supporting such a setup.

                  Yes, I'm wondering this request is so rare.

                  1 Reply Last reply
                  1
                  • girishG girish forked this topic on
                  • girishG girish marked this topic as a question on
                  • girishG girish has marked this topic as solved on
                  • girishG girish locked this topic on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search