how appoint a subdomain for a s3 bucket?

前端 未结 3 836
谎友^
谎友^ 2020-12-14 01:07

Good morning,

I am using amazon s3 bucket as the image server. And I want to use a subdomain of my site, how to address this bucket. eg: a picture is now in: https:/

3条回答
  •  佛祖请我去吃肉
    2020-12-14 01:48

    You need to rename your bucket to match the custom domain name (e.g. imagens.mydomain.com.br) and set up that domain as a CNAME to

    .s3.amazonaws.com.

    (in your case imagens.mydomain.com.br.s3.amazonaws.com.

    The full instructions are available here:

    http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html

提交回复
热议问题