I've set up an S3 Bucket that I want to use as a CDN but with my own subdomain.
For example, myfiles.mydomain.com.
So, I set up a Cloudfront web distribution that points to the bucket named "myfiles-mydomain-com", added a certificate for myfiles.mydomain.com and deployed it.
It all works nicely. I can hit urls such as https://myfiles.mydomain.com/somefile.zip and it loads up in the browser with a valid certificate.
EXCEPT...
The browser seems to redirect and then display the S3 bucket URL to the file. Something like: https://myfiles-mydomain-com.s3.us-east-2.amazonaws.com/somefile.zip
Can this be configured to keep the requested URL instead of exposing the S3 Bucket URL?