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.
CNAME
DNS record for your domain through your domain provider. This CNAME
record should point to the default CDN domain that is automatically generated when you create your Vultr CDN Push Zone subscription. After setting up the CNAME
record, make sure that the DNS changes have propagated successfully before configuring your custom domain in the Vultr CDN settings.
Follow this guide to configure a custom domain for Vultr CDN Push Zones on your Vultr account using the Vultr Customer Portal or API.
Send a GET
request to the List CDN Push Zones endpoint and note the target Push Zone subscription'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 CDN Push Zone endpoint 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" \
--data '{
"vanity_domain": "{custom_vanity_domain}",
"ssl_cert": "BASE64_ENCODED_SSL_CERT_CONTENT",
"ssl_cert_key": "BASE64_ENCODED_SSL_KEY_CONTENT"
}'
No comments yet.