All other providers / Self hosted
This guide walks you through configuring a wildcard subdomain (*.yourdomain.com
) for dynamic subdomain routing, essential for concord SaaS. It supports any DNS provider, web hosting control panels (VirtuAdmin, CloudPanel, etc.), and custom-managed servers.
β
Prerequisites
Before you begin, ensure the following:
Your primary domain (e.g.,
yourdomain.com
) is pointing to your server.You have access to DNS records (via registrar, DNS host, or control panel).
You have access to web server configuration (e.g., Nginx/Apache via panel or SSH).
You have an option to install an SSL certificate, ideally wildcard.
π Step 1: Add a Wildcard DNS Record
Create a wildcard DNS record that points all subdomains to your server.
πΈ For Any DNS Provider:
Login to your DNS management dashboard (e.g., GoDaddy, Cloudflare, Namecheap).
Add a new A record:
Type: A
Name:
*
or*.yourdomain.com
(provider-specific)Value: Your server's IP address
TTL: Auto or 300 seconds
π If you're using CNAME flattening (e.g., Cloudflare + external origin), use
CNAME
instead and point to your main domain.
π Step 2: Configure Web Server to Accept Wildcard Subdomains
Depending on your setup, youβll configure Apache or Nginx to accept any subdomain.
π οΈ Apache (Generic or via Control Panel)
Ensure your virtual host file includes:
If you're using a control panel (CloudPanel, VirtuAdmin, Plesk):
Go to the domainβs web settings
Find the ServerAlias or Subdomain Settings
Add
*.yourdomain.com
Restart Apache:
π οΈ Nginx (Generic or via Control Panel)
Ensure the server_name
block includes:
Use
.yourdomain.com
to catch all subdomains (equivalent to*.
).
Restart Nginx:
π Step 3: Install a Wildcard SSL Certificate
Wildcard subdomains require a wildcard SSL cert, validated using a DNS-01 challenge.
πΈ Using Letβs Encrypt (Recommended)
Use a tool like Certbot:
Follow instructions to add a TXT record for DNS verification.
Or use your control panel's Let's Encrypt integration (VirtuAdmin, Plesk, CloudPanel):
Choose "Wildcard SSL"
Complete DNS challenge (add TXT record)
Install the cert for your domain
β
You're Done!
Youβve now set up wildcard subdomains ready for concord SaaS. New tenants can instantly access their dashboard at clientname.yourdomain.com
without any manual DNS or virtual host edits.
Last updated