# Custom Domains

These instructions apply to the current Admin Console.

By default, HTTP Workers serve requests on a Contextual hostname. Find the **Public Worker URL** on the **Deployment** tab. If you want to use your own hostname, such as `api.example.com`, configure a custom domain on a Worker with a [public HTTP service](https://docs.contextual.io/build/contextual-workers/about-workers.md#http-workers). The application's paths stay the same.

## Set Up a Custom Domain

1. In the admin console, open **Workers** and select the Worker.
2. On **Details**, enter the hostname in **Custom domain** without `https://` or a path, then select **Save**.
3. Open **Deployment** and find the **Custom domain** card. Copy the displayed **CNAME target** exactly into a CNAME record at your DNS provider for the hostname you entered.
4. Select **Verify DNS**. If verification fails, check the CNAME record and retry after the DNS change has propagated.
5. Wait for TLS certificate issuance. The card shows **TLS certificate pending** while the certificate is being issued and **Custom domain active** when the hostname is serving over HTTPS.
6. Open the custom domain over HTTPS and test an application path. For example, if the Worker serves `/orders`, open `https://api.example.com/orders`.

## Change or Remove a Custom Domain

To change the hostname, update **Custom domain** on **Details**, select **Save**, and verify the new DNS record using the steps above. To remove the hostname, clear the field and select **Save**.
