[英]Static Web Application hosted in Amazon S3 Bucket suddenly not working
The hosted application worked until yesterday but suddenly not working today. 托管的应用程序一直工作到昨天,但今天突然不起作用。
What I have done? 我做了什么?
Hosted my client application in S3. 在S3中托管了我的客户端应用程序。 They wanted to access their site using a domain name.
他们想使用域名访问他们的网站。 To achieve this I have provided two records as given below.
为此,我提供了以下两条记录。
Type Host Value TTL
A @ IP of the client domain 600
CNAME www CloudFront distribution URL 600
The thing is Endpoint which I got while configuring Cloudfront "d3ajo2v2g7lf33.cloudfront.net" is working but the domain name which I added as an alias to this endpoint is not working. 事情是在配置Cloudfront “ d3ajo2v2g7lf33.cloudfront.net”时获得的端点有效,但是我作为别名添加到此端点的域名无效。
Probable findings from my side: 我这方面的可能发现:
1) Used let's encrypt to get the SSL and it's about to expire within a week. 1)我们使用加密来获取SSL,并且该SSL即将在一周内到期。
2) Added A record with the IP address of the domain. 2)添加了具有域IP地址的记录。 As am using Cloudfront am doubting that the domain does not have a static IP.
在使用Cloudfront时,我怀疑该域没有静态IP。
Also please let me know CloudFront distribution domain name IP will change every time or will it be static.
另外,请让我知道CloudFront分发域名IP每次都会更改,或者是静态的。
Kindly help me to resolve this. 请帮助我解决这个问题。
CloudFront has CNAME record as well. CloudFront也具有CNAME记录。 So you have to register your domain name in the CloudFront distribution.
因此,您必须在CloudFront发行版中注册您的域名。
as for the SSL certificate for your custom domain, take a look at AWS ACM . 关于您的自定义域的SSL证书,请查看AWS ACM 。 It may be easier than using lets encrypt certificate (your call).
这可能比使用let加密证书(您的呼叫)容易。
and yes. 是的。 use the cloudfront's domain URL.
使用cloudfront的域URL。 it won't change unless you delete the distribution.
除非删除发行版,否则它不会更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.