简体   繁体   English

指向Amazon S3存储桶的子域在英国不起作用

[英]Subdomain pointing to Amazon S3 bucket doesn't work in UK

There is strange problem I have a DNS Zone file with CNAME pointing to 有一个奇怪的问题,我有一个DNS区域文件,其中CNAME指向

scdn.mobidonia.com -> scdn.mobidonia.com.s3-website-us-east-1.amazonaws.com scdn.mobidonia.com-> scdn.mobidonia.com.s3-website-us-east-1.amazonaws.com

This doesn't work in UK. 这在英国不起作用。 In all other countries it works tested in ( USA, Germany, Netherlands, Macedonia). 在其他所有国家/地区,其作品均在(美国,德国,荷兰,马其顿)进行了测试。 It was working like 2 days ago. 它像2天前一样工作。

I tested with http://www.uk-proxy.co.uk 我使用http://www.uk-proxy.co.uk进行了测试

scdn.mobidonia.com.s3-website-us-east-1.amazonaws.com is accessible in UK scdn.mobidonia.com is not 在英国可以访问scdn.mobidonia.com.s3-website-us-east-1.amazonaws.com。

I see this problem very strange. 我看到这个问题很奇怪。

I have other subdomain from other hosting "apps.alarconfilms.com" it points to other bucket in Amazon S3, that points to scdn.mobidonia.com and he also doesn't work. 我从其他托管“ apps.alarconfilms.com”中获得了另一个子域,它指向Amazon S3中的其他存储桶,指向scdn.mobidonia.com,他也无法正常工作。

Really strange. 真的很奇怪

When redirecting domain to an Amazon S3 bucket, you will need to name the bucket the same as the domain name. 将域重定向到Amazon S3存储桶时,您需要将存储桶命名为与域名相同的名称。

This is because, when S3 receives the redirected traffic, it doesn't know which bucket to use. 这是因为,当S3收到重定向的流量时,它不知道要使用哪个存储桶。 So, it looks for a bucket with the matching domain name. 因此,它将查找具有匹配域名的存储桶。

Make sure your bucket is called "scdn.mobidonia.com". 确保您的存储桶名为“ scdn.mobidonia.com”。

(This is different to bucket-level redirection, which can be defined within the bucket configuration in S3.) (这与存储桶级重定向不同,后者可以在S3的存储桶配置中定义。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM