How to add custom domain on Cloudways
Add your domain in Cloudways Domain Management, copy the server's public IP from Access Details, set A record (@ to IP) and CNAME (www to domain) at your registrar, make the domain primary, then install Let's Encrypt SSL. DNS propagation takes 5-48 hours; verify with WhatsMyDNS.net. Common issues like non-resolving domains are fixed by double-checking DNS records.
Prerequisites
- Active Cloudways account with a server and application (e.g., WordPress)
- Purchased custom domain from a registrar like Namecheap, GoDaddy, or Cloudflare
- Access to your domain registrar's DNS management panel
Step-by-Step Instructions
Log in and select your server/application
Retrieve the server's public IP address
123.456.789.012), and click to copy it. This IP is used for DNS records.Add the domain in Cloudways Domain Management
example.com, without www or https://). Click Save Changes. A confirmation message appears after processing.Set the domain as primary
Configure A record at your domain registrar
@, Value/IPv4: Paste the Cloudways Public IP from step 2, TTL: Automatic. Save changes.Configure CNAME record for www subdomain
www, Value/Target: Your root domain (e.g., example.com), TTL: Automatic. Save changes. DNS propagation takes 5-30 minutes (up to 48 hours rarely); use tools like WhatsMyDNS.net to verify.Install SSL Certificate for HTTPS
example.com). Click Install Certificate (uses Let's Encrypt free SSL by default). Enable HTTPS Redirection when prompted to force secure HTTPS and prevent mixed content.Verify and test the setup
http://yourdomain.com and https://www.yourdomain.com; both should resolve to your site. In Domain Management, check for green status indicators. Optional: Add www/non-www redirects via Application Settings > General Settings.Common Issues & Troubleshooting
Domain not resolving after setup
Double-check A record IP matches Cloudways Public IP exactly and CNAME target is root domain. Verify propagation with WhatsMyDNS.net; wait up to 48 hours.
Incorrect IP or host values entered
Re-copy the Public IP from Access Details and ensure host is <code>@</code> for A record and <code>www</code> for CNAME. Delete and re-add records if needed.
Cloudflare proxy issues with A record
Turn off Cloudflare proxy (orange cloud) initially for the A record until DNS propagates, then re-enable if desired.
HTTPS mixed content or redirect errors
Ensure SSL is installed and HTTPS Redirection is enabled in Cloudways. Clear browser cache and test in incognito mode.
Domain not set as primary or temporary URL persists
In Domain Management, use kebab menu to select <strong>Make Primary</strong> and confirm. Wait a few minutes for changes to apply.