Jump toUpdate content
S3 Object Storage - Customizing URLs with CNAME
Depending on the services you provide you might not want that the
scw.cloud domain name appears on your website.
For example if you provide files to download or host the images of your website on Object Storage. In this case you might prefer a domain name like
download.mywebsite.com instead of providing links like
By using CNAME you can map a domain or subdomain to an Object Storage bucket and access the files stored in the bucket via your own domain name.
To use a customized domain name with a bucket, connect to your management console, enter the Object Storage section and create a new bucket.
It is important that the bucket name is exactly the same as the domain/subdomain intended to be used with it. For example, to create a bucket, accessible at
download.example.comthe bucket name must be
Set the bucket ACL with AWS-CLI:
aws s3api put-bucket-acl --bucket download.example.com --acl public-read
Log into the administration panel of your domain and create a new record that defines the hostname as an alias for the bucket. For example if the bucket
download.example.comis located in the Paris Region, the CNAME should point to
It is now possible to access a the file
myapp.tar.gzstored in the bucket
http://download.example.com/myapp.tar.gzinstead of the usual URL
Please note that SSL is not available when using this way to connect to a bucket.