Domains
Domains are used to route requests to your service.
Domains
The domain configuration allows you to specify custom domains for your service. By default, your service is accessible via a generated domain name, but you can add any domain that you own. The generated domain name will always remain functional even after adding custom domains. The generated name cannot be changed and is randomly generated to ensure uniqueness.
A service can have multiple domains associated with it. Each domain can be configured with its own TLS settings. The service settings is applied to all domains associated with the service.
All required DNS records for a domain can be seen by clicking the "DNS Records" button next to each domain in the domains list. If you have multiple subdomains under the same main (apex) domain, one TXT verification record is sufficient to verify ownership of all subdomains.
Note that you must have control over the domain you are adding to your service. Varnish CDN requires domain ownership verification to ensure that you own the domain.
Syncing Domains
When you add domains to your service, the changes are not applied immediately. Instead, they are queued and will be synchronized to the edge nodes as soon as they have been verifired and processed. This can take up to a minute once they have been verified.
Removing a domain from a service is applied immediately, but the actual removal from edge nodes can take a few seconds to complete.
You can press the "Sync" button on the domains page. This will immidiately check for changes of your domains that has not yet been verified.
Apex Redirect
You can configure an apex redirect to redirect requests from the apex domain (e.g., example.com) to a subdomain (e.g., www.example.com). This is the recommended approach to let all traffic towards the apex domain also reach the service.
Further information how this works can be read in the Routing Traffic documentation.
TLS Settings
You can configure TLS settings for each domain associated with your service. Varnish CDN supports both Managed TLS (using Let's Encrypt) and Custom TLS (uploading your own certificates).
More information about TLS configuration can be found in the TLS documentation.
You do not have to enable TLS for your domains, but it is highly recommended to ensure secure communication between clients and your service.
Domain Ownership Verification
To ensure that you own the domain you are adding to your service, Varnish CDN requires you to verify domain ownership. This is done by adding a specific DNS TXT record to your domain's DNS settings.
More information can be found in the Domain Ownership Verification documentation.
Troubleshooting
Follow the troubleshooting guide.