How to Manage Custom Domain for Vultr CDN Push Zones

Updated on November 27, 2024

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.

  • Vultr Customer Portal
  • Vultr API
  1. Navigate to Products, click CDN, and then click Push Zones.

    Pushzone option in products sidebar

  2. Click your target CDN Push Zone service.

    Selection of a target Push Zone service

  3. Click Custom Domain.

    Access the custom domain window

  4. Provide the custom domain and its certificate files.

    Add a custom domain with certificate files

  5. Click Update Custom Domain.

    Update Custom Domain Button

  1. Send a GET request to the List Push Zones endpoint and note the target Push Zone service's ID.

    console
    $ curl "https://api.vultr.com/v2/cdns/push-zones" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a PUT request to the Update Push Zone 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" \
        -d '{
                "vanity_domain": "<custom-vanity-domain>",
                "ssl_cert": "BASE64_ENCODED_SSL_CERT_CONTENT",
                "ssl_cert_key": "BASE64_ENCODED_SSL_KEY_CONTENT"
        }'