Domains & SSL

Adding a domain, DNS verification, automatic SSL, Cloudflare, virtual host configuration, and what the panel writes on the server for each.

9 min read10 sections

The Domains page manages every address your application answers on: its SharkCluster address, your own domains and subdomains, redirects between www and non-www, SSL certificates and Cloudflare. The page refreshes every 20 seconds, so DNS, SSL and Cloudflare status update on their own.

Getting here: Servers → select a server → Applications → select an application → Domains.

1. The Domain List

![](https://api.sharkcluster.com/uploads/blog/blog-1793695793600.png)

Each domain is shown as a card. The header shows how many domains you have, a search box, Need help? (a quick DNS guide) and Add domain.

Each card shows:

  • The domain name, with a copy button, and a Primary label on the main domain. Your automatic SharkCluster address is labelled SharkCluster address.
  • Status: for example Waiting for DNS, Online, Online (HTTP only) or Offline.
  • HTTPS: for example HTTPS - Let's Encrypt - renews <date>, HTTPS - Cloudflare edge certificate, HTTPS after DNS check or HTTP only (No SSL).
  • Routing: Direct to <server IP>, or Cloudflare proxy on when Cloudflare is enabled.

While a domain is not set up yet, a NEXT STEP banner on its card shows the DNS record to add at your DNS provider, with copy buttons and a Check DNS button. If something is wrong, such as Cloudflare's orange cloud being on or the application returning a 502 error, a banner explains it and, where possible, offers a fix.

2. Adding a Domain

Click Add domain. Adding a domain takes three steps:

Step 1: Domain

![](https://api.sharkcluster.com/uploads/blog/blog-1793695805252.png)

Enter the domain or subdomain, for example example.com or app.example.com, and continue. The domain entry is created at this point. Files are served from the application's document root, which is set on the application's Overview page.

Each application has one SharkCluster address. It is created automatically and cannot be renamed, and you cannot add another one.

Step 2: Settings

![](https://api.sharkcluster.com/uploads/blog/blog-1793695810983.png)

SettingWhat it does
Automatic HTTPS & SSLIssues a free Let's Encrypt certificate once DNS is verified, and renews it every 90 days. Turn it off to upload your own certificate later.
Proxy through CloudflareSends traffic through Cloudflare's network for caching, faster delivery and DDoS protection. This is a paid add-on; the price is shown next to the option. See the Cloudflare guide.
Make primary domainMakes this the main address of the application.
Visitors land onFor a domain with a www version: send visitors to the www address, the non-www address, or serve Both without redirecting. Other versions are redirected with a permanent (301) redirect.

Step 3: Point DNS

![](https://api.sharkcluster.com/uploads/blog/blog-1793695819447.png)

The Required DNS Records table shows exactly what to add at your DNS provider, with the record type, name, value and TTL, each with a copy button. The provider is detected from your domain where possible.

DomainRecords (Cloudflare off)
Apex domain (example.com)An A record for @ pointing to the server's IP address.
Apex with a www redirectA records for @ and www, both pointing to the server's IP address.
www domain (www.example.com)A records for www and @, both pointing to the server's IP address.
Subdomain (app.example.com)An A record for the subdomain pointing to the server's IP address.

With Cloudflare on, the records are CNAME records pointing to your SharkCluster address instead. The Cloudflare guide lists them.

  1. 1Add the records at your DNS provider.
  2. 2Click Check DNS to test them. Each record shows Verified, Not verified, Record Mismatch or Proxy Mismatch.
  3. 3Click Save Domain.

You can save before DNS is verified and finish later: the domain's card keeps showing the next step until it is. DNS changes usually take 2–30 minutes, depending on your provider. Your SharkCluster address keeps working in the meantime.

3. Verifying DNS and Going Live

Click Check DNS on the domain's card (or in step 3). When DNS points to the server:

  • The web server configuration is created and the site starts serving on the domain.
  • If automatic HTTPS is on, the SSL certificate is issued. The card shows Issuing SSL... and then the certificate details.
  • You are asked whether to make the domain the primary domain. Choose Make Primary Domain or Keep as Secondary.

If DNS is not ready, a message explains why: the record was not found yet, it points to a different server, or Cloudflare's proxy is in the way.

4. Managing a Domain

Use the buttons on a domain's card, or its More options menu:

OptionWhat it does
Set as primary (star)Makes the domain the primary domain. DNS must be verified first. You confirm the change, and the web server is reconfigured.
Issue SSL / Retry Issue SSLRequests a Let's Encrypt certificate. If issuing fails, the card shows the error with Show full log.
SSL & HTTPS ConfigurationOpens SSL Management (see section 5).
Domain Settings & RedirectsChanges the domain's settings, such as Cloudflare and where visitors land.
View / Edit Virtual HostOpens the web server configuration for the domain (see section 6). Requires DNS verification.
Cloudflare DashboardOpens the Cloudflare settings for a domain that uses SharkCluster's Cloudflare option.
Delete DomainRemoves the domain. The primary domain cannot be deleted; make another domain primary first.

5. SSL Management

![](https://api.sharkcluster.com/uploads/blog/blog-1793695835319.png)

SSL Management shows the current certificate and its expiry date, and offers two options:

Auto SSL Renew (Let's Encrypt)

Enable Auto SSL issues a free, trusted certificate that renews automatically every 90 days; Re-issue / Renew Auto SSL requests a new one. DNS must point to the server, and port 80 must be open for Let's Encrypt to verify the domain.

Custom Upload

Upload a certificate from another certificate authority: the Certificate File (.crt, .pem, .cer), the Private Key (.key, .pem) and, optionally, the Intermediate CA Bundle. The detected expiry date is shown before you click Upload & Install Certificate.

Remove SSL deletes the certificate and returns the domain to plain HTTP.

6. Virtual Host Editor

![](https://api.sharkcluster.com/uploads/blog/blog-1793695846130.png)

View / Edit Virtual Host shows the NGINX or Apache configuration for the domain, loaded from the server. You can edit directives such as rewrites, headers and limits.

Click Test & save changes. The configuration is tested on the server first; it is only applied if the test passes. If it fails, Configuration Error shows the web server's error message, and your live site is not affected. Close discards unsaved changes.

Most setups never need this. Use it only for custom rules the standard setup does not cover.

7. Cloudflare

With Proxy through Cloudflare on, traffic to the domain goes through Cloudflare, which provides an edge SSL certificate, caching and DDoS protection. The domain uses a CNAME record instead of an A record, and after DNS is verified the card shows Cloudflare SSL Deploying until the certificate is ready, usually in about a minute. The Cloudflare Dashboard option in the domain's More options menu then opens security rules, caching, redirects, analytics, Origin Protection and alerts for the domain.

If a domain points to Cloudflare's proxy but SharkCluster's Cloudflare option is off, a Cloudflare Error 1001 banner appears with Fix: Turn ON Cloudflare.

For setting it up, the DNS records it needs, every dashboard tab and turning it off, read the Cloudflare guide.

8. Practical Tips

  • Add the DNS record early. The sooner it is in place, the sooner the domain verifies.
  • Use one primary domain and redirect the others to it, so visitors and search engines see one address.
  • Keep your SharkCluster address as a fallback for testing while DNS changes.
  • Check SSL after switching DNS providers or turning Cloudflare on or off.
  • Leave the virtual host alone unless you need to. A bad edit is rejected by the test, but it is still the easiest way to cause confusion.

9. Common Problems

ProblemWhat to check
DNS record not found yetThe record has not propagated. Wait a few minutes and click Check DNS again, and confirm the record was added exactly as shown.
DNS is not pointing to this serverThe record points somewhere else. Update its value to match the one shown.
Domain is proxied by Cloudflare (orange cloud)Set the record to DNS only in Cloudflare, or turn on SharkCluster's Cloudflare option.
SSL Issuance FailedDNS may not have been live, or port 80 is blocked. Check DNS and the firewall, then click Retry Issue SSL. Show full log shows the exact error.
502 Bad GatewayThe application is stopped or starting up. Check the application's Processes and Logs.
Cannot set a domain as primaryVerify its DNS first.
Cannot delete a domainIt is the primary domain. Make another domain primary first.
Virtual host changes are rejectedRead the Configuration Error message and fix the line it names.
Online (HTTP only)No certificate is installed yet. Issue SSL from the card or SSL Management.

10. Related Pages

WhereWhat it covers
Domains (this page)Addresses, redirects, SSL, Cloudflare and the virtual host for this application.
OverviewThe document root that all domains serve files from.
CloudflareSetting up Cloudflare for a domain, its DNS records, and the Cloudflare dashboard.
LogsWeb server logs, when a domain is offline or returning errors.
Downtime alerts on OverviewAlerts when the site stops responding.

Something here not matching what you see in the panel?

Tell us
FAQ

Frequently Asked Questions

Answers to common questions about SharkCluster.

Contact Support

Yes. With Automatic HTTPS & SSL on, a free Let's Encrypt certificate is issued once DNS is verified and renews every 90 days. DNS must point to the server and port 80 must be open for Let's Encrypt to verify the domain.

The record has not propagated yet. Wait a few minutes, confirm the record was added exactly as shown, and click Check DNS again.

Yes. Under SSL Management choose Custom Upload and add the certificate file, the private key and optionally the intermediate CA bundle, then click Upload & Install Certificate.

On the application's Domains page, click Add domain, enter the domain, choose the settings, then add the DNS records shown at your DNS provider and click Check DNS. When DNS points to the server, the site starts serving on the domain.

Start your journey today

How do you start
with SharkCluster?

To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.

No lock-in contracts
No credit card required
Dedicated DevOps manager