We are trying to setup a Wordpress multisite instillation to host multiple clients. We successfully setup the Wordpress Multisite.

We are having the following issues:

  1. Setup system so clients only need to point to nameservers instead of a dedicated IP address (as that can change).
  2. The current setup in WP is to change the "Site URL" field to the client domain name. This creates an issue as the admin section then goes to the client domain (clientdomain.com/wp-login.php) and we need to secure this.
    • Is there are to keep everyone logging into the admin section under our domain (mydomain.com/wp-admin/) so it can be secure. If not...
    • Any ideas on how to setup SSL for multiple domains on a server in a scalable way?

Using Amazon Route 53 as the DNS system.

With Amazon AWS Route 53 handles the DNS, so we first create a hosted >zone for the client's registered domain (foosite.com) with a www CNAME >record pointing to www.mymultisite.com

Set up an S3 bucket in Amazon AWS for the (non-www) client's foosite.com >and statically map that to www.foosite.com

Back in the Route 53 hosted zone, create an A record for the (non-www) >foosite.com and specify it as an Alias, pointing it to the bucket created in >step 2. This assures that both www.foosite.com and foosite.com will end up >pointing to www.mymultisite.com

In the multisite network, go to the client's site in network admin and >edit the site URL, changing it to www.foosite.com

In the hosting account that hosts mymultisite.com specify an add-on >domain (or a parked domain) called foosite.com and point it to public_html >(or wherever you have WP installed). This effectively creates a virtual host >record in Apache config, for the incoming mapped site.

(note: If the multisite is hosted at a static IP address and is the only >site at that address, and the hosting company allows dynamic mapping of >incoming domains to the site's document root...then you don't have to use >add-on or parked domains. Check with your hosting company if unsure).

In your wp-config.php for the multisite, you need to add a line: >define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] ); (edit: I ended up having >some issues with this and had to use '' instead of $_SERVER['HTTP_HOST'] as >the value...suggest you try both to see what works best)

  • We have managed to solve issue #2. We used Letsencrypt to create a SSL certificate and we add the domains there. Works well. We will have to figure out to scale past 100 (as that is the limit of each certificate). – Kalman Mar 14 at 15:43

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.