Custom domain functionality in Vultr CDN Push Zones allows you to serve your content through a domain name of your choice, providing a consistent and branded experience for your users. By configuring a custom domain, you can enhance your content delivery with a personalized URL, improving trust and recognition for your brand. This feature ensures that your content is delivered efficiently while maintaining a seamless integration with your existing domain setup.
Follow this guide to configure a custom domain for Vultr CDN Push Zones on your Vultr account using the Vultr Customer Portal or API.
Navigate to Products, click CDN, and then click Push Zones.
Click your target CDN Push Zone service.
Click Custom Domain.
Provide the custom domain and its certificate files.
Click Update Custom Domain.
Send a GET
request to the List Push Zones endpoint and note the target Push Zone service's ID.
$ curl "https://api.vultr.com/v2/cdns/push-zones" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PUT
request to the Update Push Zone to update the custom domain.
$ curl "https://api.vultr.com/v2/cdns/push-zones/<pushzone-id>" \
-X PUT \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"vanity_domain": "<custom-vanity-domain>",
"ssl_cert": "BASE64_ENCODED_SSL_CERT_CONTENT",
"ssl_cert_key": "BASE64_ENCODED_SSL_KEY_CONTENT"
}'