{"id":2131,"date":"2025-11-19T14:06:02","date_gmt":"2025-11-19T11:06:02","guid":{"rendered":"https:\/\/www.dchost.com\/blog\/wordpress-multisite-on-a-vps-domain-mapping-ssl-and-performance-tuning\/"},"modified":"2026-11-04T12:12:59","modified_gmt":"2026-11-04T09:12:59","slug":"wordpress-multisite-vps-domain-mapping-ssl","status":"publish","type":"post","link":"https:\/\/www.dchost.com\/blog\/en\/wordpress-multisite-vps-domain-mapping-ssl\/","title":{"rendered":"WordPress Multisite on VPS: Domains, SSL and Performance"},"content":{"rendered":"<div class=\"dchost-blog-content-wrapper\"><p>WordPress Multisite lets related sites share one installation, central administration and software versions. On a <a href=\"https:\/\/www.dchost.com\/vps\">VPS<\/a>, it can consolidate brands, language sites or regional projects when their owners accept the shared maintenance and trust boundaries. Site count alone does not determine capacity, and a VPS plan\u2019s resource guarantees and administration access must be checked separately.<\/p>\n<p>This guide covers network planning, installation, domain mapping, HTTPS and performance tuning for WordPress Multisite on a VPS. It also explains the conditions that make the setup work: compatible components, verified domain routing and certificates, private-response cache exclusions, scheduled tasks for every site and tested recovery. The examples are planning illustrations, not a complete production server configuration or a promise of any particular traffic capacity.<\/p>\n<div id=\"toc_container\" role=\"navigation\" aria-label=\"Table of Contents\" data-nosnippet class=\"toc_transparent no_bullets toc_numbered toc_title_center\"><p class=\"toc_title\">\u0130\u00e7indekiler<\/p><ul class=\"toc_list\"><li><a href=\"#When_WordPress_Multisite_Fits_a_VPS\"><span class=\"toc_number toc_depth_1\">1.<\/span> When WordPress Multisite Fits a VPS<\/a><ul><li><a href=\"#What_WordPress_Multisite_Actually_Does\"><span class=\"toc_number toc_depth_2\">1.1.<\/span> What WordPress Multisite Actually Does<\/a><\/li><li><a href=\"#Check_Resources_and_Administration_Access\"><span class=\"toc_number toc_depth_2\">1.2.<\/span> Check Resources and Administration Access<\/a><\/li><\/ul><\/li><li><a href=\"#Planning_Your_Multisite_Architecture_on_a_VPS\"><span class=\"toc_number toc_depth_1\">2.<\/span> Planning Your Multisite Architecture on a VPS<\/a><ul><li><a href=\"#Choose_a_URL_Strategy_Subdirectories_Subdomains_or_Mapped_Domains\"><span class=\"toc_number toc_depth_2\">2.1.<\/span> Choose a URL Strategy: Subdirectories, Subdomains, or Mapped Domains<\/a><\/li><li><a href=\"#Domain_Strategy_for_a_Multisite_Network\"><span class=\"toc_number toc_depth_2\">2.2.<\/span> Domain Strategy for a Multisite Network<\/a><\/li><li><a href=\"#DNS_and_Nameserver_Planning\"><span class=\"toc_number toc_depth_2\">2.3.<\/span> DNS and Nameserver Planning<\/a><\/li><\/ul><\/li><li><a href=\"#Installing_WordPress_Multisite_on_a_VPS\"><span class=\"toc_number toc_depth_1\">3.<\/span> Installing WordPress Multisite on a VPS<\/a><ul><li><a href=\"#Prepare_the_Server_Stack\"><span class=\"toc_number toc_depth_2\">3.1.<\/span> Prepare the Server Stack<\/a><\/li><li><a href=\"#Standard_WordPress_Install\"><span class=\"toc_number toc_depth_2\">3.2.<\/span> Standard WordPress Install<\/a><\/li><li><a href=\"#Enable_Multisite_in_wp-configphp\"><span class=\"toc_number toc_depth_2\">3.3.<\/span> Enable Multisite in wp-config.php<\/a><\/li><\/ul><\/li><li><a href=\"#Domain_Mapping_for_WordPress_Multisite\"><span class=\"toc_number toc_depth_1\">4.<\/span> Domain Mapping for WordPress Multisite<\/a><ul><li><a href=\"#Core_Concept_Network_URL_vs_Site_URL\"><span class=\"toc_number toc_depth_2\">4.1.<\/span> Core Concept: Network URL vs Site URL<\/a><\/li><li><a href=\"#StepbyStep_Domain_Mapping\"><span class=\"toc_number toc_depth_2\">4.2.<\/span> Step\u2011by\u2011Step Domain Mapping<\/a><\/li><li><a href=\"#DNS_Patterns_for_Subdomain_Networks\"><span class=\"toc_number toc_depth_2\">4.3.<\/span> DNS Patterns for Subdomain Networks<\/a><\/li><li><a href=\"#Nginx_Apache_Virtual_Host_Considerations\"><span class=\"toc_number toc_depth_2\">4.4.<\/span> Nginx \/ Apache Virtual Host Considerations<\/a><\/li><\/ul><\/li><li><a href=\"#SSL_for_Multisite_and_Mapped_Domains\"><span class=\"toc_number toc_depth_1\">5.<\/span> SSL for Multisite and Mapped Domains<\/a><ul><li><a href=\"#Certificate_Options_for_Multisite\"><span class=\"toc_number toc_depth_2\">5.1.<\/span> Certificate Options for Multisite<\/a><\/li><li><a href=\"#ACME_Challenges_HTTP01_vs_DNS01\"><span class=\"toc_number toc_depth_2\">5.2.<\/span> ACME Challenges: HTTP\u201101 vs DNS\u201101<\/a><\/li><li><a href=\"#Practical_SSL_Setup_Flow_on_a_VPS\"><span class=\"toc_number toc_depth_2\">5.3.<\/span> Practical SSL Setup Flow on a VPS<\/a><\/li><li><a href=\"#Handling_Mixed_Content_and_Redirects\"><span class=\"toc_number toc_depth_2\">5.4.<\/span> Handling Mixed Content and Redirects<\/a><\/li><\/ul><\/li><li><a href=\"#Performance_Tuning_WordPress_Multisite_on_a_VPS\"><span class=\"toc_number toc_depth_1\">6.<\/span> Performance Tuning WordPress Multisite on a VPS<\/a><ul><li><a href=\"#PHPFPM_Pools_and_OPcache\"><span class=\"toc_number toc_depth_2\">6.1.<\/span> PHP\u2011FPM Pools and OPcache<\/a><\/li><li><a href=\"#Database_MariaDBMySQL_Tuning\"><span class=\"toc_number toc_depth_2\">6.2.<\/span> Database (MariaDB\/MySQL) Tuning<\/a><\/li><li><a href=\"#Object_Caching_with_Redis_or_Memcached\"><span class=\"toc_number toc_depth_2\">6.3.<\/span> Object Caching with Redis or Memcached<\/a><\/li><li><a href=\"#FullPage_Caching_Nginx_Varnish_or_LiteSpeed\"><span class=\"toc_number toc_depth_2\">6.4.<\/span> Full\u2011Page Caching: Nginx, Varnish, or LiteSpeed<\/a><\/li><li><a href=\"#Microcaching_for_PHP_Bursts\"><span class=\"toc_number toc_depth_2\">6.5.<\/span> Microcaching for PHP Bursts<\/a><\/li><li><a href=\"#CDN_and_Edge_Caching\"><span class=\"toc_number toc_depth_2\">6.6.<\/span> CDN and Edge Caching<\/a><\/li><li><a href=\"#Schedule_Due_Tasks_for_Every_Network_Site\"><span class=\"toc_number toc_depth_2\">6.7.<\/span> Schedule Due Tasks for Every Network Site<\/a><\/li><\/ul><\/li><li><a href=\"#Security_and_Maintenance_for_Multisite_on_a_VPS\"><span class=\"toc_number toc_depth_1\">7.<\/span> Security and Maintenance for Multisite on a VPS<\/a><ul><li><a href=\"#WordPress_Hardening\"><span class=\"toc_number toc_depth_2\">7.1.<\/span> WordPress Hardening<\/a><\/li><li><a href=\"#VPS-Level_Security\"><span class=\"toc_number toc_depth_2\">7.2.<\/span> VPS-Level Security<\/a><\/li><li><a href=\"#Backups_and_Disaster_Recovery\"><span class=\"toc_number toc_depth_2\">7.3.<\/span> Backups and Disaster Recovery<\/a><\/li><\/ul><\/li><li><a href=\"#A_Repeatable_Multisite_Deployment_Checklist\"><span class=\"toc_number toc_depth_1\">8.<\/span> A Repeatable Multisite Deployment Checklist<\/a><\/li><\/ul><\/div>\n<h2><span id=\"When_WordPress_Multisite_Fits_a_VPS\">When WordPress Multisite Fits a VPS<\/span><\/h2>\n<p>Start with the administration and isolation requirements. Multisite can suit related sites sharing a software lifecycle; separate installations may fit incompatible versions or independent trust boundaries better. Shared hosting may support Multisite if its operator provides the necessary controls. A VPS gives additional options only where the plan grants the relevant access and your team can manage them.<\/p>\n<h3><span id=\"What_WordPress_Multisite_Actually_Does\">What WordPress Multisite Actually Does<\/span><\/h3>\n<p>WordPress Multisite lets you run multiple sites from a single WordPress installation and database. Think of it as a \u201cnetwork\u201d of sites that shares:<\/p>\n<ul>\n<li><strong>Shared codebase:<\/strong> WordPress core, themes and plugins come from the same installation.<\/li>\n<li><strong>Shared user accounts:<\/strong> users can have different roles on different sites; site membership does not grant network administration.<\/li>\n<li><strong>Central updates:<\/strong> a shared component update can affect many sites, so test compatibility and plan any required per-site database upgrades.<\/li>\n<\/ul>\n<p>Sites have their own content tables, settings and upload locations within the installation, and may use different domains. They still share software and infrastructure. Multisite is not a strong isolation boundary between mutually untrusted tenants, and it does not automatically provide shared storefronts, content synchronization or multilingual translation workflows.<\/p>\n<h3><span id=\"Check_Resources_and_Administration_Access\">Check Resources and Administration Access<\/span><\/h3>\n<p>Size the combined workload rather than assuming Multisite always needs a larger server. When comparing VPS plans, check:<\/p>\n<ul>\n<li><strong>Resource allocation:<\/strong> CPU, memory, storage and network guarantees vary. Shared CPU or storage can still contend with other workloads.<\/li>\n<li><strong>Stack control:<\/strong> confirm access to web-server, PHP-FPM, database and cache settings, especially on managed plans.<\/li>\n<li><strong>DNS and certificates:<\/strong> confirm who controls each zone, domain authorization, ACME credentials and certificate deployment.<\/li>\n<li><strong>Scaling:<\/strong> verify resize downtime, storage limits and cost. Horizontal scaling also needs coordinated sessions, uploads, cache, database access, deployment and availability.<\/li>\n<\/ul>\n<p>If you\u2019re not sure how to size your VPS for your expected traffic and site count, our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/vps-sizing-woocommerce-laravel-nodejs\/\">choosing the right VPS resources for PHP applications<\/a> provides a good baseline for CPU, RAM, and storage planning.<\/p>\n<h2><span id=\"Planning_Your_Multisite_Architecture_on_a_VPS\">Planning Your Multisite Architecture on a VPS<\/span><\/h2>\n<p>Multisite is easiest when you plan the network before installation. A little architecture work now saves painful rewrites later.<\/p>\n<h3><span id=\"Choose_a_URL_Strategy_Subdirectories_Subdomains_or_Mapped_Domains\">Choose a URL Strategy: Subdirectories, Subdomains, or Mapped Domains<\/span><\/h3>\n<p>The installer offers domain-based subdomain networks and path-based subdirectory networks, subject to installation restrictions. Separate-domain mapping can be used with either:<\/p>\n<ul>\n<li><strong>Subdirectories:<\/strong> example.com, example.com\/site1, example.com\/site2<\/li>\n<li><strong>Subdomains:<\/strong> example.com, site1.example.com, site2.example.com<\/li>\n<li><strong>Domain mapping (separate domains):<\/strong> example.com, brand1.com, brand2.net all living on the same Multisite<\/li>\n<\/ul>\n<p>For networks that need distinct hostnames or domains, two common approaches are:<\/p>\n<ul>\n<li>A subdomain network with explicit DNS records or wildcard DNS for on-demand sites, optionally mapping selected sites to independent domains.<\/li>\n<li>A subdirectory network with sites under different paths, optionally mapping selected sites to independent domains.<\/li>\n<\/ul>\n<p>Subdirectories share a hostname, so caching and security-header rules may need path-specific configuration. Separate domains support distinct branding but add DNS and certificate management. Neither structure guarantees better SEO; choose based on your content, audience, and operational needs.<\/p>\n<h3><span id=\"Domain_Strategy_for_a_Multisite_Network\">Domain Strategy for a Multisite Network<\/span><\/h3>\n<p>If you\u2019re building multilingual or multi\u2011region sites, it\u2019s worth stepping back to think about domains and SEO. Will you use:<\/p>\n<ul>\n<li>Separate ccTLDs (example.de, example.fr)<\/li>\n<li>Subdomains (de.example.com, fr.example.com)<\/li>\n<li>Subdirectories (example.com\/de\/, example.com\/fr\/)<\/li>\n<\/ul>\n<p>Our article on <a href=\"https:\/\/www.dchost.com\/blog\/en\/hreflang-canonical-x-default-setup\/\">hreflang and international SEO architectures<\/a> is a great companion when deciding how to structure a global Multisite network.<\/p>\n<h3><span id=\"DNS_and_Nameserver_Planning\">DNS and Nameserver Planning<\/span><\/h3>\n<p>Before you even install WordPress, align your DNS and nameserver strategy:<\/p>\n<ul>\n<li>Choose registrar, external or self-managed authoritative DNS with a recovery and redundancy plan.<\/li>\n<li>Plan A records and publish AAAA only after checking the IPv6 listener, routing, firewall and certificate\/application path.<\/li>\n<li>For subdomain networks, explicit records can serve a fixed set of sites; wildcard DNS supports on-demand subdomains. Keep the base-domain record separately.<\/li>\n<li>Confirm control of each mapped domain, preserve mail\/TXT records and plan TTL overlap for any existing service.<\/li>\n<\/ul>\n<p>If self-hosting authoritative DNS is appropriate, plan independent redundancy rather than placing the only DNS service on the same VPS as the websites. <a href=\"https:\/\/www.dchost.com\/blog\/en\/private-nameservers-and-glue-records-setup-guide\/\">The private nameserver and glue guide<\/a> explains delegation and glue where required; branded nameservers are optional for running Multisite.<\/p>\n<p>For a refresher on record types (A, AAAA, CNAME, MX, TXT, CAA and more), bookmark our article <a href=\"https:\/\/www.dchost.com\/blog\/en\/common-dns-record-mistakes\/\">explaining DNS records like a friend<\/a>.<\/p>\n<h2><span id=\"Installing_WordPress_Multisite_on_a_VPS\">Installing WordPress Multisite on a VPS<\/span><\/h2>\n<p>Prepare a restricted, supported server environment and a valid HTTPS endpoint for the main domain before entering installer credentials. The exact packages and rules depend on the OS, web server, PHP version and existing application. Test the process on a representative environment before converting an established site.<\/p>\n<h3><span id=\"Prepare_the_Server_Stack\">Prepare the Server Stack<\/span><\/h3>\n<p>On your VPS you will typically run:<\/p>\n<ul>\n<li><strong>Web server:<\/strong> Nginx or Apache<\/li>\n<li><strong>PHP\u2011FPM:<\/strong> a supported PHP 8.x release compatible with your WordPress version, themes, and plugins, with the required and recommended extensions for your workload<\/li>\n<li><strong>Database:<\/strong> MariaDB or MySQL<\/li>\n<\/ul>\n<p>Our WordPress\u2011focused tuning guide, <a href=\"https:\/\/www.dchost.com\/blog\/en\/wordpress-server-tuning-php-redis-mysql\/\">The Server-Side Secrets That Make WordPress Fly<\/a>, covers PHP\u2011FPM, OPcache, Redis and MySQL tuning in depth and pairs nicely with this Multisite setup.<\/p>\n<h3><span id=\"Standard_WordPress_Install\">Standard WordPress Install<\/span><\/h3>\n<ol>\n<li>Create a database and dedicated database user with strong credentials and privileges appropriate for installation and updates.<\/li>\n<li>Obtain WordPress from the official source and deploy it to the intended web root with suitable ownership and permissions.<\/li>\n<li>Configure a complete virtual host, including safe PHP handling, routing and access restrictions; restrict installer access until setup is complete.<\/li>\n<li>Provision a valid certificate for the main hostname and complete the installer over HTTPS. Verify login, uploads and permalinks before enabling Multisite.<\/li>\n<\/ol>\n<p>At this stage you should have a normal single\u2011site WordPress installation reachable over HTTPS on the main domain.<\/p>\n<h3><span id=\"Enable_Multisite_in_wp-configphp\">Enable Multisite in wp-config.php<\/span><\/h3>\n<p>Before conversion, back up files, database and configuration and verify a rollback route. Check that pretty permalinks work, inventory plugin compatibility and deactivate active plugins during network setup. The following constant exposes Network Setup; it does not complete the conversion:<\/p>\n<ol>\n<li>Edit <code>wp-config.php<\/code> and add above the line that reads <code>\/* That's all, stop editing! Happy publishing. *\/<\/code>:<\/li>\n<\/ol>\n<pre class=\"language-bash line-numbers\"><code class=\"language-bash\">define( &#039;WP_ALLOW_MULTISITE&#039;, true );\n<\/code><\/pre>\n<ol start=\"2\">\n<li>Refresh the WordPress admin. Go to <strong>Tools &gt; Network Setup<\/strong>.<\/li>\n<li>Choose <strong>Subdomains<\/strong> or <strong>Subdirectories<\/strong> based on your plan.<\/li>\n<li>Follow the installation-specific Network Setup instructions to add the specified lines to <code>wp-config.php<\/code> and, on Apache, update <code>.htaccess<\/code>. For standalone Nginx, an administrator must separately configure the appropriate Multisite rewrite and server rules using the official WordPress Nginx guidance; WordPress cannot apply Nginx server configuration.<\/li>\n<\/ol>\n<p>Use the network type available for your installation and follow its generated settings, not a generic copied configuration. After applying the appropriate WordPress and server settings, log in again and verify Network Admin, new-site creation, permalinks and media. Re-enable compatible plugins deliberately and test affected sites. Network Setup does not apply standalone Nginx configuration.<\/p>\n<h2><span id=\"Domain_Mapping_for_WordPress_Multisite\">Domain Mapping for WordPress Multisite<\/span><\/h2>\n<p>Modern WordPress no longer needs a separate \u201cdomain mapping\u201d plugin. The WordPress-side mapping uses the <strong>Site Address (URL)<\/strong> field for each site; DNS, virtual-host routing, and certificates must also be configured.<\/p>\n<h3><span id=\"Core_Concept_Network_URL_vs_Site_URL\">Core Concept: Network URL vs Site URL<\/span><\/h3>\n<p>When you create a new site from Network Admin, you define:<\/p>\n<ul>\n<li><strong>Site domain\/path:<\/strong> e.g. site2.example.com or \/site2<\/li>\n<li><strong>Site title<\/strong><\/li>\n<li><strong>Admin email<\/strong><\/li>\n<\/ul>\n<p>Create the subsite using the network\u2019s default URL structure, then map its domain through Site Address (URL) after preparing DNS, server routing and HTTPS. Confirm domain ownership or authorization and that the name is not already assigned to another tenant. DNS resolution alone is not an authorization process.<\/p>\n<h3><span id=\"StepbyStep_Domain_Mapping\">Step\u2011by\u2011Step Domain Mapping<\/span><\/h3>\n<ol>\n<li><strong>Create and test the subsite<\/strong> under its initial subdomain or path.<\/li>\n<li><strong>Prepare the mapped domain.<\/strong> The documentation address <code>brand1.com -&gt; 203.0.113.10<\/code> illustrates an A record. For <code>www.brand1.com -&gt; 203.0.113.10<\/code>, use an appropriate A record or a CNAME to brand1.com. Replace these examples with domains you control and your actual address; use AAAA only for a verified IPv6 path.<\/li>\n<li><strong>Configure routing and TLS before the URL switch.<\/strong> Point each accepted hostname to the correct installation and provision certificate coverage for the apex and www if used. During migration, prepare the destination via controlled testing and schedule the public DNS cutover with final data synchronization.<\/li>\n<li>In Network Admin, open <strong>Sites &gt; All Sites &gt; Edit<\/strong> for the intended site. Change Site Address from, for example, <code>https:\/\/site1.example.com<\/code> to <code>https:\/\/brand1.com<\/code>.<\/li>\n<li>Verify that <code>https:\/\/brand1.com<\/code> serves the correct site, login and cookies work, and intended canonical redirects have no loops. Retain required routing and TLS on an old hostname if it redirects; removing it too early can break the redirect before HTTP is reached.<\/li>\n<\/ol>\n<p>Repeat for each mapped domain. Under the hood, all sites still live in one database and codebase; you\u2019re simply telling WordPress which domain is attached to which site.<\/p>\n<h3><span id=\"DNS_Patterns_for_Subdomain_Networks\">DNS Patterns for Subdomain Networks<\/span><\/h3>\n<p>If your base network uses subdomains, you\u2019ll typically set:<\/p>\n<ul>\n<li><code>A   example.com      203.0.113.10<\/code><\/li>\n<li><code>A   *.example.com    203.0.113.10<\/code>  (wildcard)<\/li>\n<\/ul>\n<p>The wildcard can supply answers for otherwise undefined names such as <code>en.example.com<\/code>, <code>shop.example.com<\/code> and <code>blog.example.com<\/code>. Explicit DNS records and existing names can change wildcard behavior. It does not configure web-server routing, create a WordPress site or supply TLS coverage. Keep the apex record and verify answers for actual names rather than assuming every label resolves identically.<\/p>\n<p>Mapped domains need their own DNS configuration and must be accepted by the web server and assigned to the correct WordPress site. A records use IPv4 addresses; optional AAAA records require a tested IPv6 path. All may share the installation\u2019s web root, but unknown Host values should not be allowed to select arbitrary tenant content or populate cache entries.<\/p>\n<h3><span id=\"Nginx_Apache_Virtual_Host_Considerations\">Nginx \/ Apache Virtual Host Considerations<\/span><\/h3>\n<p>For domain\u2011mapped Multisite on a single VPS:<\/p>\n<ul>\n<li>Accepted hostnames may share a document root across one or several virtual hosts. Choose the arrangement according to routing and certificate management.<\/li>\n<li>Use <code>server_name<\/code> in Nginx or <code>ServerAlias<\/code> in Apache for the intended names, and define safe handling for unknown hostnames.<\/li>\n<li>With separate certificates, configure corresponding TLS virtual hosts\/SNI selection. One ordinary server block does not automatically select among arbitrary certificate files just because several names are listed.<\/li>\n<\/ul>\n<p><strong>Routing illustration only:<\/strong> the following original Nginx snippet omits PHP handling, rewrite rules, TLS and access restrictions. Do not enable it as a complete WordPress vhost; serving a PHP tree without the correct handler can expose source or break the site. The domain and path values are placeholders to replace with your own:<\/p>\n<pre class=\"language-nginx line-numbers\"><code class=\"language-nginx\">server {\n    listen 80;\n    server_name example.com *.example.com brand1.com brand2.net;\n    root \/var\/www\/example.com\/public;\n    # ... PHP and rewrite rules ...\n}\n<\/code><\/pre>\n<p>For HTTPS, configure the appropriate <code>listen 443 ssl<\/code> listener, certificate chain and private key within a complete virtual-host design. Each accepted hostname must select a certificate that actually covers it. Validate the full configuration and test hostname routing, login, media, redirects and certificate chains before enabling it; the snippet above is not an operational validation.<\/p>\n<h2><span id=\"SSL_for_Multisite_and_Mapped_Domains\">SSL for Multisite and Mapped Domains<\/span><\/h2>\n<p>SSL is where many Multisite setups become fragile. You have multiple hostnames, possibly wildcards plus individual domains, and a mix of HTTP challenges. The key is to plan your certificate strategy upfront.<\/p>\n<h3><span id=\"Certificate_Options_for_Multisite\">Certificate Options for Multisite<\/span><\/h3>\n<p>You essentially have four patterns:<\/p>\n<ul>\n<li><strong>Exact-name certificate:<\/strong> covers only the names listed; example.com does not automatically cover www.example.com.<\/li>\n<li><strong>Wildcard certificate:<\/strong> <code>*.example.com<\/code> covers one label such as shop.example.com, not example.com, deep.shop.example.com or brand1.com. Add apex coverage separately if needed.<\/li>\n<li><strong>SAN certificate:<\/strong> lists several exact names, subject to CA limits and domain authorization.<\/li>\n<li><strong>Separate certificates:<\/strong> each mapped domain or name group has its own certificate and renewal\/deployment path.<\/li>\n<\/ul>\n<p>One workable pattern for a growing subdomain network is:<\/p>\n<ul>\n<li>Explicit base-domain coverage plus wildcard coverage where automatic subdomain creation requires it.<\/li>\n<li>Per-domain or carefully grouped certificates for mapped domains, issued through an authorized ACME workflow.<\/li>\n<li>Inventory and alerts for every certificate and its active deployment, with private-key and DNS-credential access limited to the required operators.<\/li>\n<\/ul>\n<p>If you\u2019re unsure how to choose between DV, OV, EV, and wildcard SSL, our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/dv-ov-ev-wildcard-ssl-selection\/\">selecting the right SSL certificate type<\/a> walks through real\u2011world scenarios for e\u2011commerce and SaaS.<\/p>\n<h3><span id=\"ACME_Challenges_HTTP01_vs_DNS01\">ACME Challenges: HTTP\u201101 vs DNS\u201101<\/span><\/h3>\n<p>Automatic SSL usually relies on the ACME protocol. You\u2019ll need to decide how certificates are validated:<\/p>\n<ul>\n<li><strong>HTTP-01:<\/strong> serves a challenge under <code>http:\/\/yourdomain\/.well-known\/acme-challenge\/...<\/code> on port 80. Ensure validation can reach the correct challenge response through all published routes and proxies. It cannot issue wildcard certificates.<\/li>\n<li><strong>DNS-01:<\/strong> proves control using a TXT record under the challenge name and supports wildcard issuance. For Let\u2019s Encrypt wildcard certificates, use DNS-01. Automating tenant-domain renewals requires authorized DNS API access or an appropriate challenge delegation; a one-time manual TXT edit is not renewal automation.<\/li>\n<\/ul>\n<p>We\u2019ve written a deep dive on <a href=\"https:\/\/www.dchost.com\/blog\/en\/acme-challenges-http-01-dns-01-tls-alpn-01\/\">HTTP-01 and DNS-01 ACME challenges<\/a> and another playbook on <a href=\"https:\/\/www.dchost.com\/blog\/en\/lets-encrypt-wildcard-ssl-certificates\/\">Let\u2019s Encrypt wildcard SSL automation<\/a>; both are directly applicable to Multisite networks on a VPS.<\/p>\n<h3><span id=\"Practical_SSL_Setup_Flow_on_a_VPS\">Practical SSL Setup Flow on a VPS<\/span><\/h3>\n<ol>\n<li>Inventory the base, subsite, mapped and redirect hostnames and verify control\/authorization for each.<\/li>\n<li>Provision base-domain HTTPS before installer or admin use. Add <code>*.example.com<\/code> through DNS-01 if a wildcard is needed; include the apex as a separate name.<\/li>\n<li>Issue mapped-domain certificates using a supported ACME method and configure the correct TLS virtual hosts\/SNI selection.<\/li>\n<li>Automate renewal, validation, deployment and service reload where required; protect DNS\/API credentials with the narrowest feasible scope.<\/li>\n<li>Test the renewed certificate actually served for each hostname and monitor expiry and renewal failures. Issuing a certificate does not prove it reached the active endpoint.<\/li>\n<\/ol>\n<p>Don\u2019t forget to set correct CAA records if you lock your domains to specific CAs. Our article on <a href=\"https:\/\/www.dchost.com\/blog\/en\/caa-records-lets-encrypt-zerossl\/\">CAA records and multi\u2011CA strategies<\/a> covers how to avoid accidental certificate issuance failures.<\/p>\n<h3><span id=\"Handling_Mixed_Content_and_Redirects\">Handling Mixed Content and Redirects<\/span><\/h3>\n<p>Once HTTPS is in place, ensure:<\/p>\n<ul>\n<li>After verifying certificate coverage, redirect HTTP to the intended HTTPS URL, preserving relevant paths and query strings.<\/li>\n<li>Use <code>https:\/\/<\/code> for each Site Address (URL), with explicit canonical-host rules.<\/li>\n<li>Review themes, plugins and stored URLs for hard-coded <code>http:\/\/<\/code> references.<\/li>\n<li>When TLS ends at a trusted proxy, configure HTTPS detection for that actual proxy path. Do not trust arbitrary forwarded headers from public clients.<\/li>\n<\/ul>\n<p>For mixed content, inventory references and back up the database before using a Multisite-aware, serialized-data-safe search\/replace process. Use a dry run, target the intended site tables\/URLs and avoid blind replacements across shared user or network data. Test assets, login\/cookies, redirects and callbacks. Migrating existing sites additionally requires checking imported users, plugin compatibility, uploads, final writes and rollback; a content export is not a full transfer of settings or application data.<\/p>\n<h2><span id=\"Performance_Tuning_WordPress_Multisite_on_a_VPS\">Performance Tuning WordPress Multisite on a VPS<\/span><\/h2>\n<p>Measure the aggregate workload across sites: request rate, simultaneous PHP work, p95\/p99 latency, errors, memory pressure, database activity, cache misses and scheduled-job duration. Tune the limiting resource and retest. A codebase shared by many sites does not imply fixed per-site cost or automatic capacity as the network grows.<\/p>\n<h3><span id=\"PHPFPM_Pools_and_OPcache\">PHP\u2011FPM Pools and OPcache<\/span><\/h3>\n<p>On a Multisite network, PHP workers serve all sites. Make sure:<\/p>\n<ul>\n<li><strong>pm.max_children:<\/strong> select from measured worker memory, CPU and dependency capacity; too many workers can exhaust memory or overload the database.<\/li>\n<li><strong>pm.max_requests:<\/strong> worker recycling can limit growth from some library leaks, but does not fix the leak. Values such as 500\u20131000 are examples to measure, not required defaults.<\/li>\n<li><strong>opcache.memory_consumption:<\/strong> size the opcode cache for the actual loaded scripts and monitor misses\/restarts. Shared files may be reused within the relevant PHP cache instance; separate runtimes and deployments still need capacity planning.<\/li>\n<li>Define how code changes and rollback become visible to OPcache. Disabled timestamp checks require explicit invalidation or a suitable restart; monitor the deployment path.<\/li>\n<\/ul>\n<p>Our server\u2011side tuning article mentioned earlier goes into specific starting values and measurement techniques.<\/p>\n<h3><span id=\"Database_MariaDBMySQL_Tuning\">Database (MariaDB\/MySQL) Tuning<\/span><\/h3>\n<p>Multisite uses more tables per network but the same engine under the hood. Focus on:<\/p>\n<ul>\n<li><strong>innodb_buffer_pool_size:<\/strong> budget hot-data caching together with connections, other database allocations and PHP\/cache memory.<\/li>\n<li><strong>Query cache:<\/strong> current MySQL 8 does not provide the old query cache, so do not add removed query_cache settings. MariaDB is different: inspect version\/build and workload; its query cache is normally disabled by default and is not a substitute for indexing or application caching.<\/li>\n<li><strong>Queries and contention:<\/strong> inspect slow queries, plans, locks and connection limits across the network. Control logging overhead and protect potentially sensitive logged data.<\/li>\n<\/ul>\n<p>When WooCommerce or other heavy plugins join the network, you can reuse many of the ideas from our <a href=\"https:\/\/www.dchost.com\/blog\/en\/woocommerce-mysql-innodb-tuning-checklist\/\">WooCommerce MySQL\/InnoDB tuning checklist<\/a>.<\/p>\n<h3><span id=\"Object_Caching_with_Redis_or_Memcached\">Object Caching with Redis or Memcached<\/span><\/h3>\n<p>A persistent object cache can reduce repeated database work when the workload and integration benefit from it. WordPress\u2019s default object cache lasts for one request; cross-request caching needs a supported backend and drop-in. Measure benefit and correctness rather than treating Redis or Memcached as mandatory for every network.<\/p>\n<ul>\n<li>Use a maintained Multisite-compatible object-cache integration with Redis or Memcached where appropriate.<\/li>\n<li>Verify per-site keys and intentionally shared global groups; do not assume a single fixed prefix is sufficient to distinguish every site or another WordPress installation.<\/li>\n<li>Restrict network access and credentials; logical key names are not a security boundary against an actor who can read the whole backend.<\/li>\n<li>Size memory and eviction behavior, test invalidation and cache failure, and monitor hits\/misses. Object caching does not automatically supply shared application sessions or durable order storage.<\/li>\n<\/ul>\n<p>Our comparison of <a href=\"https:\/\/www.dchost.com\/blog\/en\/redis-vs-memcached-wordpress-woocommerce\/\">Redis vs Memcached for WordPress<\/a> explains how to choose and tune TTL and eviction for busy sites, which translates directly to Multisite setups.<\/p>\n<h3><span id=\"FullPage_Caching_Nginx_Varnish_or_LiteSpeed\">Full\u2011Page Caching: Nginx, Varnish, or LiteSpeed<\/span><\/h3>\n<p>Shared page caching can reduce PHP work for reusable public responses. It must preserve site and user boundaries. Applicable options include:<\/p>\n<ul>\n<li><strong>Nginx FastCGI cache<\/strong> in front of PHP\u2011FPM.<\/li>\n<li><strong>Varnish<\/strong> as a dedicated caching proxy.<\/li>\n<li><strong>LiteSpeed Cache<\/strong> if you run LiteSpeed\/OpenLiteSpeed.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.dchost.com\/blog\/en\/wordpress-full-page-cache\/\">The WordPress and WooCommerce page-cache guide<\/a> provides stack-specific context. Define cache keys using the trusted hostname, path and every relevant representation input, such as query, scheme, locale or currency. Bypass login, administration, accounts, carts, checkout, authenticated requests and other personalized responses; respect private\/no-store and session-cookie behavior. Verify separate users and sites, invalidation and cold-cache behavior. Host plus path alone is not a universal safe cache key.<\/p>\n<h3><span id=\"Microcaching_for_PHP_Bursts\">Microcaching for PHP Bursts<\/span><\/h3>\n<p>A short cache lifetime does not make private content safe to share. An illustrative 1\u20135 second microcache may help repeated public blog or landing-page responses, subject to the same cache keys, exclusions and invalidation rules as longer caching. Do not use shared microcaching for logged-in dashboards, carts or personalized pages. <a href=\"https:\/\/www.dchost.com\/blog\/en\/the-1-5-second-miracle-how-nginx-microcaching-makes-php-feel-instantly-faster\/\">The Nginx microcaching guide<\/a> provides further context; validate the actual request and cookie behavior.<\/p>\n<h3><span id=\"CDN_and_Edge_Caching\">CDN and Edge Caching<\/span><\/h3>\n<p>A CDN can bring reusable assets closer to users and reduce origin load, depending on geography, cacheability and hit rate. Confirm support and certificate routing for every mapped domain:<\/p>\n<ul>\n<li>Configure each accepted domain\u2019s origin, TLS and cache behavior; do not assume adding one domain enables the rest.<\/li>\n<li>Use appropriate <code>Cache-Control<\/code> and versioned asset URLs. Long immutable caching fits files whose URL changes with content.<\/li>\n<li>Bypass personalized and authenticated HTML, accounts, carts and checkout across all caching layers. Preserve relevant cookies, variation and purge behavior.<\/li>\n<li>Test cache misses and origin capacity; edge caching does not eliminate the need for a working origin or secure direct-access policy.<\/li>\n<\/ul>\n<p>If you want a deeper playbook on headers and cache behaviour, see our guide on <a href=\"https:\/\/www.dchost.com\/blog\/en\/static-asset-caching-cache-control-fingerprinting\/\">cache-control, ETag, and asset fingerprinting<\/a>.<\/p>\n<h3><span id=\"Schedule_Due_Tasks_for_Every_Network_Site\">Schedule Due Tasks for Every Network Site<\/span><\/h3>\n<p>WordPress checks scheduled work through request-triggered WP-Cron; it is not a continuously running scheduler and does not execute every task on every page view. A system scheduler can make triggering independent of visitors, but Multisite requires deliberate coverage of each site\u2019s event queue:<\/p>\n<ul>\n<li>Inventory all active sites and the deadlines of their tasks. Calling the main site\u2019s <code>wp-cron.php<\/code> alone does not establish that every subsite\u2019s due events ran.<\/li>\n<li>Configure an authorized scheduler to trigger the appropriate <code>wp-cron.php<\/code> site context or use a supported WP-CLI workflow selecting each site explicitly. Check the installed tool\u2019s options; do not assume a network-wide option exists in every stable release.<\/li>\n<li>Run with the correct application user, path and PHP environment. Account for overlap, long-running callbacks, failures and newly added sites; monitor successful completion, not only process launch.<\/li>\n<li>After verifying the replacement scheduler for every site, disable visitor-triggered spawning through the supported WordPress setting. Choose a frequency from actual deadlines; five minutes is an example, not a guarantee of timely execution.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.dchost.com\/blog\/en\/how-to-disable-wp-cron-and-use-real-cron-jobs-for-wordpress-on-cpanel-and-vps\/\">The WordPress system-cron guide<\/a> explains the scheduling transition. In Multisite, adapt it to all site contexts and continue to monitor overdue events and scheduler failures. Critical application queues, such as store background jobs, may have their own scheduling requirements; a cron entry alone does not prove those jobs completed.<\/p>\n<h2><span id=\"Security_and_Maintenance_for_Multisite_on_a_VPS\">Security and Maintenance for Multisite on a VPS<\/span><\/h2>\n<p>A Multisite network concentrates many sites into one platform. This is operationally efficient but also raises the stakes: a misconfiguration, vulnerable plugin, or compromised admin account can affect many brands at once. A few disciplines go a long way.<\/p>\n<h3><span id=\"WordPress_Hardening\">WordPress Hardening<\/span><\/h3>\n<p>At the application level:<\/p>\n<ul>\n<li>Use strong unique credentials and a supported 2FA integration, especially for super admins; review recovery access and stale accounts.<\/li>\n<li>Limit network-administrator privileges and verify site-specific roles. Domain mapping and separate content tables do not isolate mutually untrusted code.<\/li>\n<li>Set permissions according to ownership and execution users, disable dashboard editing where appropriate, and test any <code>wp-admin<\/code> restrictions against required AJAX\/API and administrative workflows.<\/li>\n<li>Maintain core, themes, plugins, mu-plugins and drop-ins; test shared-component updates and apply urgent security fixes promptly.<\/li>\n<\/ul>\n<p>Our <a href=\"https:\/\/www.dchost.com\/blog\/en\/wordpress-hardening-checklist-the-friendly-way-to-lock-down-file-permissions-salt-keys-xml-rpc-and-ufw-fail2ban\/\">WordPress hardening checklist<\/a> walks through concrete file permission, salt keys, XML\u2011RPC, UFW, and Fail2ban configurations you can apply on your VPS.<\/p>\n<h3><span id=\"VPS-Level_Security\">VPS-Level Security<\/span><\/h3>\n<p>On the VPS itself, treat the host as production\u2011critical infrastructure:<\/p>\n<ul>\n<li>Use SSH keys and appropriate network restrictions, test replacement access before disabling old methods and keep recovery access. A nondefault port only reduces some scanning noise.<\/li>\n<li>Expose only required ports through the host firewall, accounting for both IPv4 and IPv6 and any trusted proxy path.<\/li>\n<li>Keep the OS, PHP, web server and database supported and patched; restrict database\/cache access.<\/li>\n<li>Monitor logs, privileged changes and alerts with a named response owner. Confirm provider management and network DDoS scope separately.<\/li>\n<\/ul>\n<p>Our calm guide to <a href=\"https:\/\/www.dchost.com\/blog\/en\/vps-security-checklist\/\">securing a VPS server<\/a> outlines a realistic hardening path that fits nicely around a Multisite network.<\/p>\n<h3><span id=\"Backups_and_Disaster_Recovery\">Backups and Disaster Recovery<\/span><\/h3>\n<p>Because Multisite concentrates many sites into one database and file tree, backups are non\u2011negotiable:<\/p>\n<ul>\n<li>Back up the complete network database, uploads, custom code and required configuration\/credentials with an application-consistent process. Identify how trusted core\/plugin packages will be restored.<\/li>\n<li>Choose frequency and retention from acceptable data loss and recovery time. Daily backups may be insufficient for active stores; 7 daily, 4 weekly and 3 monthly copies are only an illustrative retention plan.<\/li>\n<li>Keep an independent offsite copy with suitable access separation and test full-network recovery in a restricted environment.<\/li>\n<li>Test single-site recovery separately: shared users, network settings and plugin data complicate restoring one subsite. Do not overwrite the live whole-network database merely to restore one site\u2019s posts.<\/li>\n<li>During restore tests, control real email, payment, webhook and scheduled side effects; document how new production writes will be preserved during recovery or rollback.<\/li>\n<\/ul>\n<p>Our guide to the <a href=\"https:\/\/www.dchost.com\/blog\/en\/3-2-1-backups-cpanel-plesk-vps\/\">3\u20112\u20111 backup strategy<\/a> explains how to structure backups on VPS environments so a single failure doesn\u2019t wipe out your entire network.<\/p>\n<h2><span id=\"A_Repeatable_Multisite_Deployment_Checklist\">A Repeatable Multisite Deployment Checklist<\/span><\/h2>\n<p>A Multisite rollout coordinates domains, <a href=\"https:\/\/www.dchost.com\/ssl\">TLS certificates<\/a>, shared code and data, caching and operational responsibility. Keep a checklist for each new site rather than assuming that adding a Network Admin entry makes DNS, HTTPS, caches and scheduled jobs ready.<\/p>\n<p>Choose a compatible network structure and measured VPS capacity, then establish a tested single-site HTTPS installation before enabling the network. Prepare authorized domain routing and certificates before switching site URLs. Configure privacy-safe caching, tasks for every site, restricted administration and tested backup restoration. Confirm DNS\/data cutover, login and redirects when migrating existing content, and monitor after launch.<\/p>\n<p>Use Multisite when shared administration and compatible software fit the sites\u2019 ownership and maintenance needs. Choose separate installations or stronger isolation where those assumptions do not hold. When requesting DCHost or another provider\u2019s help, specify resource, access, certificate and management requirements and confirm which tasks are included and priced separately. A documented, tested configuration supports predictable operations; it does not guarantee security, capacity or compliance for every tenant.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Build a WordPress Multisite network with correct domain and certificate routing. Measure shared capacity, protect personalized responses and verify scheduled jobs and backups for every site.<\/p>\n","protected":false},"author":1,"featured_media":8896,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[184],"tags":[],"class_list":["post-2131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/2131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/comments?post=2131"}],"version-history":[{"count":12,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/2131\/revisions"}],"predecessor-version":[{"id":11495,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/posts\/2131\/revisions\/11495"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media\/8896"}],"wp:attachment":[{"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/media?parent=2131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/categories?post=2131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dchost.com\/blog\/en\/wp-json\/wp\/v2\/tags?post=2131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}