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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Subdomain configuration for Multisite WordPress Installation

    Support
    wordpress wp-multisite
    5
    9
    520
    Loading More Posts
    • 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
      omer last edited by girish

      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 Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        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.

        jdaviescoates Lonkle 2 Replies Last reply Reply Quote 0
        • O
          omer last edited by

          Okay, got It.

          1 Reply Last reply Reply Quote 0
          • jdaviescoates
            jdaviescoates @nebulon last edited by jdaviescoates

            @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 Reply Quote 1
            • Lonkle
              Lonkle @nebulon last edited by

              @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 Reply Quote 0
              • girish
                girish Staff last edited by

                @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!

                Lonkle 1 Reply Last reply Reply Quote 1
                • Lonkle
                  Lonkle last edited by

                  No problem, I'm on it! ☺️

                  1 Reply Last reply Reply Quote 0
                  • Lonkle
                    Lonkle @girish last edited by

                    @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 Reply Quote 1
                    • girish
                      girish Staff last edited by

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

                      1 Reply Last reply Reply Quote 2
                      • First post
                        Last post
                      Powered by NodeBB