Custom domain functionality in Vultr CDN Pull Zones allows you to serve your content using your own domain name, providing a branded experience and enhancing your site's credibility. By setting up a custom domain, you can ensure that your content is accessed through a personalized URL, which can improve user trust and engagement. This feature enables you to integrate your content delivery seamlessly with your existing domain infrastructure.
Follow this guide to configure a custom domain for Vultr CDN Pull Zones on your Vultr account using the Vultr Customer Portal or API.
Navigate to Products, click CDN, and then click Pull Zones.
Click your target CDN Pull Zones service.
Click Custom Domain.
Provide the custom domain and certificate files if the origin URL uses HTTPS scheme.
Click Update Custom Domain.
Send a GET
request to the List Pull Zones endpoint and note the target Pull Zone service's ID.
$ curl "https://api.vultr.com/v2/cdns/pull-zones" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Pull Zone to update the custom domain.
http
for origin-scheme
, to use https
as origin-scheme
and vanity-domain
together you will need to use ssl_cert
and ssl_cert_key
flags and provide certificate files.
$ curl "https://api.vultr.com/v2/cdns/pull-zones/<pullzone-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"vanity_domain": "<custom-vanity-domain>"
}'