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. Multiple user portal domains

Multiple user portal domains

Scheduled Pinned Locked Moved Support
9 Posts 4 Posters 1.5k Views 6 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.
    • yusfY Offline
      yusfY Offline
      yusf
      wrote on last edited by
      #1

      I use multiple domains from the same Cloudron instance. That means different user bases share the same instance, unknowingly of each other. However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.

      Can I serve the user portal from multiple domains instead of having to choose one?

      murgeroM jdaviescoatesJ 2 Replies Last reply
      2
      • yusfY yusf

        I use multiple domains from the same Cloudron instance. That means different user bases share the same instance, unknowingly of each other. However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.

        Can I serve the user portal from multiple domains instead of having to choose one?

        murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by
        #2

        @yusf I don't think this is possible, but maybe buy a generic domain to use as the portal domain?

        Example:

        my.parentsite.tld ??

        Maybe?

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        yusfY 1 Reply Last reply
        0
        • murgeroM murgero

          @yusf I don't think this is possible, but maybe buy a generic domain to use as the portal domain?

          Example:

          my.parentsite.tld ??

          Maybe?

          yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #3

          @murgero Yeah, that’s what I do now. It’s too confusing. Users of a domain need to stay on that same domain at all times as they won’t understand the context of another one.

          murgeroM 1 Reply Last reply
          0
          • yusfY yusf

            @murgero Yeah, that’s what I do now. It’s too confusing. Users of a domain need to stay on that same domain at all times as they won’t understand the context of another one.

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by
            #4

            @yusf Oh!

            Maybe add a CNAME

            my.domain2.com -> my.portal.tld

            The CNAME will redirect to my.portal.tld automatically allowing users to go to my.domain2.com

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            1 Reply Last reply
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #5

              The CNAME trick won't work most likely because nginx (the reverse proxy) also needs to be configured. I think there might also be some other issue because the dashboard uses oauth2 which is tied to a domain. (@nebulon will know about it).

              @yusf Will the users just be normal/non-admin users?

              murgeroM yusfY 2 Replies Last reply
              0
              • girishG girish

                The CNAME trick won't work most likely because nginx (the reverse proxy) also needs to be configured. I think there might also be some other issue because the dashboard uses oauth2 which is tied to a domain. (@nebulon will know about it).

                @yusf Will the users just be normal/non-admin users?

                murgeroM Offline
                murgeroM Offline
                murgero
                App Dev
                wrote on last edited by
                #6

                @girish @yusf
                Maybe install the LAMP app at my.domain.tld then put an index.html file in there which just simply redirects instead?

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~

                1 Reply Last reply
                0
                • girishG girish

                  The CNAME trick won't work most likely because nginx (the reverse proxy) also needs to be configured. I think there might also be some other issue because the dashboard uses oauth2 which is tied to a domain. (@nebulon will know about it).

                  @yusf Will the users just be normal/non-admin users?

                  yusfY Offline
                  yusfY Offline
                  yusf
                  wrote on last edited by
                  #7

                  @girish Yes, normal users.

                  @murgero The context switch of being redirected to a different domain is big enough to cause this confusion. So I’d need for users identifying with one domain to be able to stay on this domain throughout the whole user portal flow.

                  murgeroM 1 Reply Last reply
                  0
                  • yusfY yusf

                    @girish Yes, normal users.

                    @murgero The context switch of being redirected to a different domain is big enough to cause this confusion. So I’d need for users identifying with one domain to be able to stay on this domain throughout the whole user portal flow.

                    murgeroM Offline
                    murgeroM Offline
                    murgero
                    App Dev
                    wrote on last edited by
                    #8

                    @yusf You could use PHP to proxy my.domain2.tld to the main portal and use the header() function to replace the url/domain the client is on internally so the redirection never needs to happen.

                    --
                    https://urgero.org
                    ~ Professional Nerd. Freelance Programmer. ~

                    1 Reply Last reply
                    0
                    • yusfY yusf

                      I use multiple domains from the same Cloudron instance. That means different user bases share the same instance, unknowingly of each other. However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.

                      Can I serve the user portal from multiple domains instead of having to choose one?

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #9

                      @yusf said in Multiple user portal domains:

                      However they still need to use the contextually unrelated my.myownunrelateddomain.tld for logins.

                      Do they really though?

                      (I actually assume yes in your case, but just to tease out more info...)

                      I mean, users could just go to the apps directly and login there, no? i.e. I'm pretty sure my users can login directly at chat.uniteddiversity.coop without having login at my.uniteddiversity.org first.

                      What's the use case? Is it that you want them to have a dashboard with links to all their various apps? Or is this for users who are able to install more app on their domain etc? 🙂

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      0
                      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