Use a custom domain
A public HTTP port can use your own hostname, such as api.example.com. You
need access to the domain's DNS settings to point it to your service.
In the service's Edit domain name settings, enter your hostname for the public HTTP port. The DNS record section shows the CNAME record to create at your DNS provider:
| DNS field | EasyHosting value |
|---|---|
| Type | CNAME |
| Hostname(s) | Your custom hostname, such as api.example.com |
| Target hostname | The generated EasyHosting hostname |
If your service has several custom hostnames on public HTTP or HTTPS ports, create a separate CNAME record for each hostname. All records use the same Target hostname shown in EasyHosting.
Use the copy control beside each value to copy that hostname on its own. Some
providers expect just the subdomain (api) in the host field when you are
already editing example.com. Follow your provider's instructions.
Save the port settings and add the record at your DNS provider. The custom hostname must point to the generated EasyHosting hostname. DNS changes can take time to become available; check the service's DNS status in EasyHosting. If it remains invalid, check that the CNAME host and target match the values shown in the domain settings.