Skip to main content
A custom domain lets your customer reach their deployment at a hostname they own, such as app.example.com, instead of the address Deployz assigns. You add the domain in Deployz. Your customer creates two DNS records, and Deployz sets up HTTPS.

How a custom domain works

  • You add and remove the domain. Your customer can’t add, change, or remove it. They can only create the DNS records and check their progress.
  • Your customer creates two CNAME records in their own DNS: one that proves they own the domain, and one that routes traffic to the deployment. Deployz only reads their DNS. It never changes it.
  • The HTTPS certificate is created in your customer’s AWS account, in the deployment’s Region, by the Deployz connector.
  • Traffic goes straight to your customer’s AWS account. The custom domain points directly at the load balancer in their account. The default Deployz address keeps working, and its traffic passes through the Deployz Cloudflare network first.
  • One custom domain per deployment. A domain can be connected to only one deployment.
Two addresses for one deployment. Visitors to the default address, d-<deployment-id>.deployz.dev, pass through the Deployz Cloudflare network before they reach the load balancer in the customer's AWS account. Visitors to a custom domain such as app.example.com go straight to the load balancer. The customer creates two CNAME records at their DNS provider: Verify ownership, so AWS Certificate Manager can issue the HTTPS certificate in the customer's account, and Route traffic, which points the domain at the load balancer. Deployz only reads these records.Two addresses for one deployment. Visitors to the default address, d-<deployment-id>.deployz.dev, pass through the Deployz Cloudflare network before they reach the load balancer in the customer's AWS account. Visitors to a custom domain such as app.example.com go straight to the load balancer. The customer creates two CNAME records at their DNS provider: Verify ownership, so AWS Certificate Manager can issue the HTTPS certificate in the customer's account, and Route traffic, which points the domain at the load balancer. Deployz only reads these records.

The default address and a custom domain both reach the load balancer in the customer's AWS account.

Before you start

  • The deployment must be running and show its Application URL on the detail page.
  • Agree on the hostname with your customer. They need access to that domain’s DNS settings.
  • Use a subdomain, such as app.example.com. Deployz doesn’t support:
    • Root domains, such as example.com
    • Wildcard domains, such as *.example.com
    • Full URLs: enter only the hostname, without https:// or a path
    • IP addresses, or Deployz and AWS domains

Add the domain

Who: you (the vendor), in the Deployz dashboard.
  1. In Deployments, open the customer’s deployment.
  2. In the Application URL card, next to Custom domain, select Add custom domain. The deployment’s install page opens. Because you’re signed in to Deployz, you can manage the domain there.
  3. Select Set up custom domain.
  4. In Domain, enter the hostname, for example app.example.com.
  5. Select Add domain.
Deployz requests a certificate. After a short wait, the card shows Waiting for DNS and lists two records: Each record has a Name and a Value with a Copy button.

Ask your customer to create the DNS records

Who: your customer, at their DNS provider. Send your customer Create custom domain DNS records. They see the same records on their install page and can select Check now after creating them. DNS changes can take some time to appear. Deployz checks automatically. While the domain shows Waiting for DNS or Connecting, you can also select Check now on the card. Deployz checks a domain at most once every 30 seconds, so if you select Check now again sooner, the card shows the latest result without a new check. When both records are found, Deployz finishes the certificate and sets up HTTPS. When the card shows Active and Available securely at: with the https:// address, the custom domain is ready. The Application URL on the detail page switches to the custom domain and shows Also available at with the default address.

Domain statuses

While a domain is waiting or connecting, the card can show the latest check result, such as Verification record not found or Domain isn’t pointing to this deployment. These are normal until the records are in place. If the card shows This deployment isn’t running, Deployz has paused the domain checks because the deployment isn’t running, for example because its first install failed or it’s being removed. Setup continues when the deployment is running again. When a domain shows Needs attention, the card explains why, for example The HTTPS certificate couldn’t be issued. Remove the domain, fix the cause, then add it again. See Fix HTTPS and custom domain problems.

Change or remove the domain

Who: you (the vendor). Open the domain card from Manage custom domain or Check custom domain in the Application URL card. Before you remove a domain, check what happens:
  • The domain stops routing to the deployment once removal finishes. The default address keeps working.
  • Deployz doesn’t delete your customer’s DNS records. Ask your customer to delete the two records when they no longer need them.
  • You can’t edit a domain’s hostname. To change it, remove the domain, then add the new one.
You can remove a domain in any status except Removing.
  1. Select Remove domain.
  2. In Remove custom domain?, select Remove domain.
While the domain shows Removing, Check now and Remove domain are unavailable. After removal, you can add a new domain. Removing the deployment also removes its custom domain. See Remove a deployment.