How to allow two domain names to access the same bucket
Suppose I have a bucket named img.abc.com and the domain name img.abc.com has been configured with a dns cname record and can be accessed normally. If I need the domain name img-test.abc.com, I can also access the bucket img.abc.com. What should I do? Please tell me, thank you
2 Replies
If you setup a second CNAME pointing img-test
to the same bucket as img
, you should still be able to access your bucket using either URL. That said, each bucket only allows you to upload a single SSL Certificate to enable HTTPS traffic.
As such, you will likely need to setup a Wildcard SSL certificate for the primary domain and modify your ACL accordingly:
Unfortunately using a wildcard cert doesn't seem to work, except for the domain that exactly matches the bucket name. For other CNAME entries, the default Linode SSL appears to get used so you get a browser error.