Skip to content
Home button
  • Pricing
Skip to content

Domains

On this page:

Loading...

Configure the domain that points to your site on CloudCannon.

Testing Domains

Every site on CloudCannon has a matching .cloudvent.net URL. Use this to test on a live site without having to set up your own domain.

Testing domains are generated with an adjective and a noun. For example: grey-grouse.cloudvent.net or brave-submarine.cloudvent.net. To stop serving content on this domain, add Password Authentication or contact support.

Robots.txt

CloudCannon automatically serves a default robots.txt file on all testing domains to ensure that these sites are not indexed by search engines.

robots.txt
User-agent: *
Disallow: /
noindex: /

Custom Domains

Attach your own domain to a site on CloudCannon.

To add a custom domain:

  1. Purchase a domain from a domain registrar
  2. Go to the Site Settings / Domain section for your site
  3. Enter your domain with or without a subdomain in the Domain Name box
  4. Click Add Domain

Once you have added your domain, you will see instructions for configuring your DNS and name servers.

Screenshot of Domain interface with no domain set

Subpaths

When you add a custom domain, you have the option to use a subpath. This option is for serving multiple sites under the same domain name at different paths. The main site must exist on the base URL before sites can be added at subpaths.

Screenshot of Domain interface with no domain set

Subdomains

Adding a subdomain is the same as adding a Custom Domain. To add a subdomain:

  1. Go to the Site Settings / Domain section
  2. Enter the domain including the subdomain

Multiple Subdomains

When there are multiple sites with subdomains on the same domain, a subdomain is delegated as the main domain. All unallocated subdomains redirect to the sites with the main domain. For example:

  • A site has www.example.com attached
  • Another site has docs.example.com attached
  • www.example.com is set as the main domain

Visiting any subdomain other than www.example.com or docs.example.com will redirect to www.example.com.

To set a site with a subdomain as the main domain:

  1. Create at least two sites with the same domain and different subdomains
  2. Navigate to the Domain Settings / ** / *Redirects*
  3. Click Set Main Domain on a site to redirect all unused subdomains there
Screenshot of Domain Redirects interface

Agency Domains

To brand agency sites to share with clients:

  1. Create a site
  2. Set up a subdomain at *client-name.agency-domain.com**
  3. Share *client-name.agency-domain.com** instead of the testing domain

Configuring your domain

Important

Changes to DNS can take up to 48 hours to propagate, depending on the previous TTL set. Test your site is configured correctly with the pingdom DNS checker.

Configuration instructions are shown after adding a domain. There are two choices:

Using CloudCannon DNS allows you to manage your DNS records within CloudCannon. This option automatically provides wildcard SSL certificates for your domain, so all your subdomain sites can be served over HTTPS without extra configuration.

See here for more information about configuring CloudCannon DNS.

External DNS

If you want to manage your DNS records outside CloudCannon, you can use External DNS. See here for more information about configuring external DNS.

Important

If you are using Cloudflare as your DNS provider, you will need to configure your DNS records differently. See our guide for using a Cloudflare Proxy with CloudCannon.

Note

If you’re unsure how DNS works, this guide by Verisign is an excellent resource.

On this page:

Loading...

Don’t miss the latest
CloudCannon news freshly delivered to your inbox
Illustration of woman holding an envilope