How to Manage Custom Domain for Vultr CDN Push Zones
-
by Blog Admin
- 6
How to Manage Custom Domain for Vultr CDN Push Zones
Configure a personalized web address for your Vultr application instead of using the default domain.
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.
To use a custom domain (or vanity domain) with your Vultr CDN Push Zone, you need to create a 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.
Vultr Customer Portal
- Navigate to Products, click CDN, and then click Push Zones.
- Click your target CDN Push Zone subscription to open its management page.
- Click Custom Domain.
- Provide the Custom Domain and Domain-validated Certificate(SSL/TLS) and Private Key files.
- Click Update Custom Domain.
Vultr API
- Send a
GETrequest to the List CDN Push Zones endpoint and note the target Push Zone subscription’s ID.console$ curl "https://api.vultr.com/v2/cdns/push-zones" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
PUTrequest to the Update CDN Push Zone endpoint to update the custom domain.console$ 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" }'
How to Manage Custom Domain for Vultr CDN Push Zones Configure a personalized web address for your Vultr application instead of using the default domain. 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…
How to Manage Custom Domain for Vultr CDN Push Zones Configure a personalized web address for your Vultr application instead of using the default domain. 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…