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. Subdomain configuration for Multisite WordPress Installation

Subdomain configuration for Multisite WordPress Installation

Scheduled Pinned Locked Moved Solved Support
wordpresswp-multisite
9 Posts 5 Posters 1.9k 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.
    • O Offline
      O Offline
      omer
      wrote on last edited by girish
      #1

      Hi,
       
      I've successfully completed the Multisite WordPress installation using this tutorial. I've chosen the subdomain option (x.site.com)

      I'm able to add new sites from WordPress dashboard but on opening the new site (x.site.com), I get 404 Not Found.
      I know this is because of the Wildcard domain setting which I'm not sure If I've done it right or not.

      My domain is registered on Namecheap.
      I'm using VPS hosting from Hetzner.

      While adding the domain in the cloudron, I've used the Wildcard option and added a DNS A record with name *.example.com pointing to my server's IP.

      Isn't this enough?

      What I need to do so that x.site.com starts pointing towards the multisite which I created in the WordPress dashboard.

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        On Cloudron each app gets a unique single origin/domain which then is used to route through the reverse proxy to the app. This means that a single app cannot run on multiple domains. The alternate domains you can set are only redirects. Thus unfortunately a wordpress multisite setup with more than one domain will not work on Cloudron. Multisite setups only work if subpaths instead of subdomains are used.

        jdaviescoatesJ LonkleL 2 Replies Last reply
        0
        • O Offline
          O Offline
          omer
          wrote on last edited by
          #3

          Okay, got It.

          1 Reply Last reply
          0
          • nebulonN nebulon

            On Cloudron each app gets a unique single origin/domain which then is used to route through the reverse proxy to the app. This means that a single app cannot run on multiple domains. The alternate domains you can set are only redirects. Thus unfortunately a wordpress multisite setup with more than one domain will not work on Cloudron. Multisite setups only work if subpaths instead of subdomains are used.

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

            @nebulon said in Subdomain configuration for Multisite WordPress Installation:

            On Cloudron each app gets a unique single origin/domain which then is used to route through the reverse proxy to the app. This means that a single app cannot run on multiple domains. The alternate domains you can set are only redirects. Thus unfortunately a wordpress multisite setup with more than one domain will not work on Cloudron. Multisite setups only work if subpaths instead of subdomains are used.

            It sounds like what you're actually saying is that even if subpaths are used it's not possible to have a multisite with more than one domain, right?

            So:

            blognetwork.coop/blog1/
            blognetwork.coop/blog2/
            Etc

            Would work.

            But these urls cannot be mapped to any other top level domains.

            So, it's impossible to migrate my WordPress Multisite which has 7 sites all at different domains to Cloudron, even if subpath method is used, correct?

            I thought as much, but good to know for sure.

            I think it's probably worth adding at least the bit I've bolded above to the docs about WordPress apps somewhere.

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            1
            • nebulonN nebulon

              On Cloudron each app gets a unique single origin/domain which then is used to route through the reverse proxy to the app. This means that a single app cannot run on multiple domains. The alternate domains you can set are only redirects. Thus unfortunately a wordpress multisite setup with more than one domain will not work on Cloudron. Multisite setups only work if subpaths instead of subdomains are used.

              LonkleL Offline
              LonkleL Offline
              Lonkle
              wrote on last edited by
              #5

              @nebulon Are there any Cloudron plans to add multiple domain support (instead of redirects). My production environment uses 3 top level domains in my Wordpress multisite? I couldn’t bring it to Cloudron otherwise.

              I’m loving Cloudron more and more as I’m learning more about it. I think I want to use it for production one day but if this was what was holding me back, I just wonder if there is a plan to support this because WP Multisite’s built in feature is multiple domains (or sub domains, but I chose top level domains for my 3 sites within the multisite).

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                @Lonk Do you think you can open a separate feature request for multi-site here - https://forum.cloudron.io/category/97/feature-requests ? We can schedule it based on how many people are interested. Thanks!

                LonkleL 1 Reply Last reply
                1
                • LonkleL Offline
                  LonkleL Offline
                  Lonkle
                  wrote on last edited by
                  #7

                  No problem, I'm on it! ☺️

                  1 Reply Last reply
                  0
                  • girishG girish

                    @Lonk Do you think you can open a separate feature request for multi-site here - https://forum.cloudron.io/category/97/feature-requests ? We can schedule it based on how many people are interested. Thanks!

                    LonkleL Offline
                    LonkleL Offline
                    Lonkle
                    wrote on last edited by
                    #8

                    @girish I added two Feature Requests based on your suggestion:

                    1. Domain Alias Support at the Cloudron Level (since this would be helpful to all apps, not just WP Multisite)
                    2. Official Wordpress Multisite Top-level Domain Support on Cloudron (which would use domain aliases to accomplish this as that's the only feature needed for *full support of WP Multisite)

                    I'll be writing a custom Cloudron Wordpress plugin to automatically add top-level domains added to WP's multisite feature directly as a domain alias on the Cloudron app itself. I did this same thing for CPanel and it worked perfectly. Your API is even simpler than CPanel's so it should be even easier to write this for your platform.

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

                      This is now implemented - https://forum.cloudron.io/topic/4516/wordpress-multisite

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