Chuyển tới nội dung chính

Client custom domains

Short answer: a customer can connect their own domain (for example mybusiness.com) to their site from the customer dashboard, if their plan includes the Custom Domains benefit. You pick how domains connect (Cloudflare SaaS (CNAME) or Direct IP (A record)) under Waas > Settings > General, and you check them under Waas > Domains.

Needs: Pro + WaaS

How it works​

  1. You choose a domain mode and fill in the target your customers point their DNS at.
  2. The customer adds their domain on the dashboard and sets the DNS records shown there.
  3. WaaS checks that the domain reaches this site. Once it is Verified, the customer can make it the main address of their site.

The site keeps its platform address (for example customer.yoursaas.com) until a verified custom domain is set as primary.

Limits:

  • Up to 2 custom domains per site.
  • The plan (or a bought service) must include the Custom Domains benefit. See Benefits, services and add-ons.
  • Not available when customer sites use path URLs. In path mode the Custom Domains section is hidden from the General settings.

Step 1: Choose a domain mode​

Go to Waas > Settings > General and find Custom Domains.

Custom Domains on General

FieldNotes
Domain ModeCloudflare SaaS (CNAME) or Direct IP (A record).
CNAME TargetFor Cloudflare SaaS. Customers point a CNAME here, for example cdn.saas.example.com.
DCV DelegationFor Cloudflare SaaS. The CNAME value from Cloudflare that lets custom hostnames validate SSL, for example acme123.dcv.cloudflare.com.
Server Public IPFor Direct IP. Customers point an A record here.

Click Save Changes. Waas > Domains then shows Mode: with the record value, for example CNAME: cdn.saas.example.com.

Cloudflare SaaS (CNAME)​

Cloudflare issues the SSL certificate for each customer domain.

  1. Add your platform zone to Cloudflare and turn on Cloudflare for SaaS (SSL/TLS > Custom Hostnames in Cloudflare). This may need a paid Cloudflare plan.
  2. Set a fallback origin to the hostname you will use as CNAME Target, and point that hostname at your server.
  3. In Custom Domains, choose Cloudflare SaaS (CNAME), fill CNAME Target, and paste DCV Delegation if Cloudflare gives you one.
  4. Click Save Changes.

DNS records the customer adds (the dashboard shows them too):

NameTypeValue
@CNAMEYour CNAME Target
wwwCNAMEYour CNAME Target
_acme-challenge on their domainCNAMETheir domain followed by your DCV Delegation value

The _acme-challenge row shows only when DCV Delegation is filled in. See the Cloudflare for SaaS docs.

Direct IP (A record)​

You handle the web server name and the certificate for each customer domain.

  1. In Custom Domains, choose Direct IP (A record) and enter Server Public IP.
  2. Click Save Changes.
  3. For each customer domain, add the name to your web server (Nginx server_name or an Apache virtual host), issue a certificate (for example with Certbot) and reload the web server.
  4. Verify the domain on Waas > Domains.

DNS records the customer adds:

NameTypeValue
@AYour Server Public IP
wwwAYour Server Public IP

Step 2: The customer adds the domain​

On the customer dashboard, in the domains table, the customer:

  1. Enters the domain and clicks Add Alias (confirm Add alias).
  2. Sets the DNS records shown, then clicks Verify and Check now. DNS can take up to 48 hours; they should wait at least 15 minutes between checks.
  3. When the domain is Verified and not yet primary, clicks Set Primary (confirm Set primary). The site address changes to that domain.
  4. Can click Remove on any domain that is not the primary one.

The platform address shows as Active on the dashboard.

Step 3: Check domains in the admin​

Go to Waas > Domains.

Domains list

If no domain mode is set, the page says Domain settings not configured. Go to WaaS Settings → General to set domain mode. Addresses under your Platform Domain are left off this list; custom domains are listed.

ColumnNotes
DomainThe hostname.
TenantThe site ID.
TypePrimary, Alias or Subdomain.
StatusUnknown (never checked), Verified or Pending (checked and failed).
Last CheckedHow long ago. Older than 24 hours is marked stale. Empty until the first check.
ActionsA checkmark, Verify domain.

The views at the top are All, Verified and Pending. Never-checked domains stay on All only.

Pending domains

Verified domains

Search with Search Domains. The list shows 10 rows per page; Domain, Tenant and Type can be sorted.

Verify a domain​

  1. Click the checkmark in Actions on a row, or select rows, choose Verify under Bulk actions and click Apply.
  2. Reload the list.

The check opens the domain at https://the-domain/?grabwp-verify-domain=1 (then plain HTTP if HTTPS fails) and confirms the answer comes from the right site. It is not a DNS lookup: the domain must already reach your WordPress site.

ResultMeaning
Pending, did not respondDNS does not point here yet, or the web server does not accept that hostname.
Pending, reachable but not this siteThe hostname answers, but not with this customer's site.
Not mapped to a siteThe hostname is not on any site.

Run Verify again after DNS changes.

Check that it works​

The Waas > Domains row is Verified with a recent Last Checked, and the customer site opens on the custom domain.