How to connect your own domain to the CMS website.
Requirements
- Own domain (e.g. mojafirma.pl)
- Access to DNS settings
- CMS website in Sugester 2
Step 1: DNS Configuration
At your domain registrar, add the record:
For the main domain (mojafirma.pl):
Type: A
Name: @ (or empty)
Value: 63.35.155.0
TTL: 3600
For the subdomain (app.mojafirma.pl):
Type: CNAME
Name: app
Value: app.mojafirma.pl
TTL: 3600
Step 2: Adding the domain in Sugester 2
Through UI:
- Go to Settings → Domains
- Click Add domain
- Enter the domain (e.g.
mojafirma.pl) - Select type: CMS Site
- Choose the website
Through API:
curl -X POST "https://domena.com/account/domains.json?api_token=TOKEN" \
-H "Content-Type: application/json" \
-d '{
"domain": {
"domain": "mojafirma.pl",
"subject_type": "Cms::Site",
"subject_id": 1018
}
}'
Step 3: SSL (automatic)
Sugester 2 automatically generates a Let’s Encrypt certificate after:
- Correct DNS configuration
- Adding the domain in the panel
- The first HTTPS request
DNS propagation time: up to 48h (usually a few minutes).
Multiple domains for one website
You can assign multiple domains to the same website:
-
mojafirma.pl→ Site: MojaFirma-marketing -
www.mojafirma.pl→ Site: MojaFirma-marketing
Redirects
For redirecting www → non-www or vice versa, configure both domains and set up the redirect in DNS or the server.
Troubleshooting
Domain not working
- Check DNS propagation:
dig mojafirma.pl - Check if the domain is added in Sugester 2
- Wait for propagation (up to 48h)
SSL error
- Ensure DNS points to Sugester 2
- Wait 5-10 minutes for the certificate to be generated
- Clear browser cache
404 Page
- Check if the Site has assigned Pages
- Check if the Page has the correct
path(empty for the homepage)
List of domains
curl "https://domena.com/account/domains.json?api_token=TOKEN"
Deleting a domain
curl -X DELETE "https://domena.com/account/domains/ID.json?api_token=TOKEN"