• Blog
  • Docs
  • Careers
  • Get Support
  • Contact Sales
DigitalOcean
  • Featured AI Products

    Compute

    Build, deploy, and scale cloud compute resources

    Containers and Images

    Safely store and manage containers and backups

    Managed Databases

    Fully managed resources running popular database engines

    Management and Dev Tools

    Control infrastructure and gather insights

    Networking

    Secure and control traffic to apps

    Security

    Help protect your account and resources with these security features

    Storage

    Store and access any amount of data reliably in the cloud

    Browse all products

  • AI/ML

    CMS

    Data and IoT

    Developer Tools

    Gaming and Media

    Hosting

    Security and Networking

    Startups and SMBs

    Web and App Platforms

    See all solutions

  • Community

    Documentation

    Developer Tools

    Get Involved

    Utilities and Help

  • Become a Partner

    Marketplace

  • Pricing
  • Log in
  • Sign up
  • Log in
  • Sign up

Company

  • About
  • Leadership
  • Blog
  • Careers
  • Customers
  • Partners
  • Referral Program
  • Affiliate Program
  • Press
  • Legal
  • Privacy Policy
  • Security
  • Investor Relations

Products

  • Knowledge Bases
  • GPU Droplets
  • Bare Metal GPUs
  • Inference Engine
  • Data & Learning
  • Evaluations
  • Model Library
  • Droplets
  • Kubernetes
  • Functions
  • App Platform
  • Load Balancers
  • Managed Databases
  • Spaces
  • Block Storage
  • Network File Storage
  • API
  • Uptime
  • Cloud Security Posture Management (CSPM)
  • Identity and Access Management (IAM)
  • Cloudways
  • View all Products

Resources

  • Community Tutorials
  • Community Q&A
  • CSS-Tricks
  • Write for DOnations
  • Currents Research
  • DigitalOcean Startups
  • Wavemakers Program
  • Compass Council
  • Open Source
  • Newsletter Signup
  • Marketplace
  • Pricing
  • Pricing Calculator
  • Documentation
  • Release Notes
  • Code of Conduct
  • Shop Swag

Solutions

  • AI Training GPU
  • GPU Inference
  • VPS Hosting
  • Website Hosting
  • VPN
  • Docker Hosting
  • Node.js Hosting
  • Web Mobile Apps
  • WordPress Hosting
  • Virtual Machines
  • View all Solutions

Contact

  • Support
  • Sales
  • Report Abuse
  • System Status
  • Share your ideas

Company

  • About
  • Leadership
  • Blog
  • Careers
  • Customers
  • Partners
  • Referral Program
  • Affiliate Program
  • Press
  • Legal
  • Privacy Policy
  • Security
  • Investor Relations

Products

  • Knowledge Bases
  • GPU Droplets
  • Bare Metal GPUs
  • Inference Engine
  • Data & Learning
  • Evaluations
  • Model Library
  • Droplets
  • Kubernetes
  • Functions
  • App Platform
  • Load Balancers
  • Managed Databases
  • Spaces
  • Block Storage
  • Network File Storage
  • API
  • Uptime
  • Cloud Security Posture Management (CSPM)
  • Identity and Access Management (IAM)
  • Cloudways
  • View all Products

Resources

  • Community Tutorials
  • Community Q&A
  • CSS-Tricks
  • Write for DOnations
  • Currents Research
  • DigitalOcean Startups
  • Wavemakers Program
  • Compass Council
  • Open Source
  • Newsletter Signup
  • Marketplace
  • Pricing
  • Pricing Calculator
  • Documentation
  • Release Notes
  • Code of Conduct
  • Shop Swag

Solutions

  • AI Training GPU
  • GPU Inference
  • VPS Hosting
  • Website Hosting
  • VPN
  • Docker Hosting
  • Node.js Hosting
  • Web Mobile Apps
  • WordPress Hosting
  • Virtual Machines
  • View all Solutions

Contact

  • Support
  • Sales
  • Report Abuse
  • System Status
  • Share your ideas
© 2026 DigitalOcean, LLC.Sitemap.
Product updates

Introducing Custom Subdomains for Spaces CDN

author

By Priya Chakravarthi

  • Published: April 9, 2019
  • 3 min read
<- Back to blog home

At DigitalOcean, we are always working on making the cloud easier to use so that you can focus on building great things.

Part of the journey in creating the developer cloud included launching Spaces, S3-compatible object storage that makes hosting web assets painless. In September 2018, we launched the built-in CDN feature for Spaces that provided the ability to turn on global edge caching for a Space in any of the regions Spaces was available. This allowed our customers to deliver assets to their websites and applications up to 70% faster.

Today, we are pleased to announce custom subdomains for your Spaces CDN endpoints. Now customers can use their own subdomain URL to deliver assets from an S3-compatible Space and secure it with a TLS certificate. These certificates can be issued by a CA authority, self-signed, or auto-generated through DigitalOcean’s Let’s Encrypt integration at no additional cost.

Image

How Does it Work?

=================

If you don’t have a domain already, you need to purchase one from a domain name registrar. Then you need to set up DNS records for your domain by using a DNS hosting service. Please note that if you plan on using DigitalOcean’s Let’s Encrypt integration to generate TLS certificates for your CDN subdomain, you need to use DigitalOcean’s DNS hosting service. For self-signed certificates, you can use any DNS hosting service. For a detailed walkthrough, see our product documentation on custom subdomains.

Add a DNS CNAME record, such as “assets,” that maps to the CDN endpoint of your Space, then assign your subdomain from the Settings menu for a pre-existing Space or when you enable CDN for a new Space.

Why Use Custom Subdomains?

==========================

There are several reasons that custom subdomains could be useful for you.

Branding

Agencies and web developers who use Spaces object storage to host their assets can now use their own subdomain. Not only will this avoid confusion with end users, but it also keeps your tech stack hidden. Nobody but you needs to know where you host your digital assets.

Integrated SSL/TLS management

Securing your Space is flexible and easy. You can now upload a certificate for your own subdomain or use a free Let’s Encrypt cert that is simple to provision in just a few clicks, right from the Control Panel. The Let’s Encrypt certificate generation flow follows the same simple design principles used to generate certificates for DigitalOcean Load Balancers.

Simple configuration

Spaces users don’t need to spend extra engineering effort implementing a reverse proxy solution to hand off calls between *.cdn.digitaloceanspaces.com and *.myapp.com. In addition, when mapping your own subdomain to the CDN endpoint, it gets automatically added to the CORS listings, saving you a step. Now you can focus on building great applications rather than fine-tuning infrastructure.

Zero cost

Custom subdomains and integrated TLS management are included with your Space at no additional cost.

What’s Next

===========

Web asset hosting is only one use case that can leverage a subdomain connected to a CDN endpoint. Customers have also been asking to host static websites from their Spaces as well. This feature is currently under development and will serve as a building block for a front-end-as-a-service solution that leverages some of the core building blocks of the object storage and CDN infrastructure that customers have come to love.

Get started and create a Space today.

Happy Coding,

Priya Chakravarthi,

Product Manager

About the author

Priya Chakravarthi
Priya Chakravarthi
Author

Share

  • Product Updates

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
Sign up

Related Articles

Scale Faster with Managed Weaviate: Now in Public Preview on DigitalOcean
Product updates

Scale Faster with Managed Weaviate: Now in Public Preview on DigitalOcean

Waverly Swinton
  • July 9, 2026
  • 4 min read

Read more

DigitalOcean Evaluations: Production Model and Router Testing for the Inference Stack
Product updates

DigitalOcean Evaluations: Production Model and Router Testing for the Inference Stack

Grace Morgan
  • July 1, 2026
  • 3 min read

Read more

Run Codex in the cloud – DigitalOcean for Codex is now available
Product updates

Run Codex in the cloud – DigitalOcean for Codex is now available

Ari Sigal
  • June 25, 2026
  • 3 min read

Read more