简体   繁体   English

Amazon S3 Bucket中托管的静态Web应用程序突然无法正常工作

[英]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? 我做了什么?

  1. Using Cloudfront - To host my website from Amazon's edge locations with a custom SSL certificate setup for my domain. 使用Cloudfront-通过针对我的域的自定义SSL证书设置从Amazon的边缘位置托管我的网站。
  2. Amazon Certificate Manager - To get HTTPS Certificate Amazon Certificate Manager-获取HTTPS证书

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.

相关问题 静态网站的Google Analytics(分析)在本地主机上正常运行,而不在Amazon Web Services S3存储桶上正常运行 - Static website's Google Analytics working correctly on local host and not on Amazon Web Services S3 bucket 托管静态网站的 S3 存储桶策略 - S3 Bucket Policy for Hosted Static Website Amazon Web Service S3存储桶不安全 - Amazon Web Service S3 bucket is not secure Amazon S3 存储桶策略和 CORS 不起作用 - Amazon S3 Bucket Policy and CORS not working 如何使 Angular Service Worker 识别 AWS CloudFront 中托管的静态托管 S3 存储桶中已部署应用程序的新版本 - How to make an Angular Service Worker recognize new versions of a deployed application in a static-hosted S3 bucket hosted in AWS CloudFront 从 S3 存储桶中托管的静态网站调用 AWS lambda - Calling an AWS lambda from a Static WebSite hosted in an S3 bucket 将自定义子域重定向到AWS S3存储桶中托管的静态网站 - Redirecting a custom subdomain to a static website hosted in AWS S3 bucket 更新托管在 AWS S3 存储桶上的 static 网站 - Updating a static website hosted on an AWS S3 Bucket 在aws s3存储桶上托管的静态网站的自定义网址 - Custom url of static website hosted on aws s3 bucket 如何在Amazon S3存储桶中缓存php / static页面? - How to cache php / static page in Amazon S3 bucket?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM