- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有一个位于 S3 上的网站 example.com
。我已经为此站点成功设置了 HTTP -> HTTPS 转发。
我还有一个子域,blog.example.me
,它也存在于 S3 上,我想启用 SSL。目前,它仅支持 HTTP。我使用 Route 53 进行路由,使用 Cloudfront 作为 CDN。
我已查找有关此问题的文档,但尚未找到有效的方法。我必须创建一个新证书,还是可以使用 example.com
使用的相同证书?如果我可以使用相同的证书,我应该从哪个 AWS 开始?
最佳答案
对于证书,它取决于它是否是涵盖通配符证书的整个域示例的通配符证书 *.example.com
您可以为您的 sub 使用相同的证书域名
具有 S3 和 Cloudfront 的典型托管安全站点将遵循以下步骤
创建 S3 存储桶
桶名-你的域名
选择您的存储桶,转到属性 -> 静态网站托管,然后启用网站托管
授予公共(public)读取权限以允许云端从您的存储桶中读取。
获取 SSL 证书/如果适用则使用现有的
AWS 提供免费的 SSL 证书,适用于支持 SNI 的浏览器。您可以导入自己的 SSL 证书。
CloudFront 配置
Create a new Web distribution. Under Origin Settings, use the Endpoint you copied from your S3 bucket’s static hosting setup. Many other guides instruct this without explaining why — this is because if you have redirect rules configured with your S3 bucket and you specify the internal AWS S3 resource, the redirects will no longer work. Therefore, you must specify the website endpoint domain to ensure redirection functionality works.
Under Default Cache Behavior Settings, it’s worth selecting Redirect HTTP to HTTPS and narrowing down the Allowed HTTP Methods — for a static website, GET and HEAD will do.
在云端分发设置下配置:
Route 53 配置:
前往托管区域
为您要使用的域或子域选择托管区域
为您的站点创建一个记录:选择别名,在下拉列表中您应该会看到您的云端分布,选择它作为您的别名目标并保存。
更多详细信息请查看:https://medium.com/@willmorgan/moving-a-static-website-to-aws-s3-cloudfront-with-https-1fdd95563106
关于amazon-web-services - 使用 AWS S3 和 ACM 在子域上启用 SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48486174/
完整的错误消息是: 403 urn:acme:error:unauthorized: Account creation on ACMEv1 isdisabled. Please upgrade you
我们正在使用 EKS 和 Nginx-ingress(NLB)。我正在尝试在 NLB 的 AWS-load-balancer-SSL-cert 注释中配置多个 AWS ACM 证书。但没有运气。如果可
我的应用程序运行在EKS上,该服务器正在使用istio-ingressgateway服务为端口15020、15032、15031、15029、15030、15443的负载均衡器。我想在此ELB上终止S
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 8 年前。 Improve this ques
下面是我从链接 http://progspedia.blogspot.com/2011/05/679-dropping-balls.html#comment-form 复制的代码 #include i
我正在尝试使用 Swing 和 ACM 交互器制作一个非常简单的程序。它直接取自类讲义,但在我的电脑上不起作用。当我运行它时,它可以正常运行大约半秒钟,然后短暂闪烁、重新加载,然后所有按钮和文本字段功
我正在尝试使用 Swing 和 ACM 交互器制作一个非常简单的程序。它直接取自类讲义,但在我的电脑上不起作用。当我运行它时,它可以正常运行大约半秒钟,然后短暂闪烁、重新加载,然后所有按钮和文本字段功
我是Java新手!!! :) 现在,我只是对 ACM 库的对象及其函数感到困惑。我想创建一个颜色为绿色的 GRect。所以我可能会这样做: GRect rect = new GRect(0, 0, 5
这个问题已经有答案了: 已关闭12 年前。 Possible Duplicate: Can you answer this 2009 ACM International Collegiate Prog
我被选中参加 ACM ICPC 区域决赛。但是我只剩下 1 周的准备时间了。我已经为此准备了 1 年,但由于我的考试,我在过去两周不能花太多时间在编程上。 有人可以发布一些链接吗,我可以在其中找到涵盖
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 8 年前。 Improve this qu
我正在尝试找出如何解决 ACM ICPC final 之一的问题(从 2012 年开始,所以我猜是最近的)。它称为 Fibonacci Words,描述为 here在问题 D 下。 我认为我非常接近,
我正在尝试在 Eclipse 中编写一个 java 应用程序。 我真的很想使用 ACM.Program 包,但是,我的 Eclipse 副本没有安装它! 我在网上找遍了,找不到一个 ACM 包的下载。
在使用 vi 15 年的大部分时间后,我在使用 Go 时一时兴起尝试了 Rob Pike 的 Acme。我真的很喜欢它的小巧轻便。现代 unix 风格的东西在 Acme 中表现不佳,而 Ruby 开发
您好! 我在查找出现此错误的原因时遇到了问题。尝试用谷歌搜索它。这似乎是从容器中查找 dns 的问题。 traefik 日志错误: time="2020-01-30T12:12:12+01:00" l
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) thr
我目前正在将我的硕士论文放入 latex ACM 模板中,我有一个大表,我希望其中不同的行具有不同的颜色。现在我知道这通常是使用以下方法完成的: \rowcolor{Yellow} 现在我使用 ACM
我是这个网站的新手,对 Java 也比较陌生。 我创建了一个 Java 应用程序,它使用 ACM 图形包并扩展了 GraphicsProgram 。我现在希望能够将图形输出窗口的内容转换为图像文件,例
我目前正在阅读 Eric Robert 的Java 艺术与科学,其中使用了 ACM Java 库。其中一项练习要求学生构建 Breakout 的克隆版本。我对对象的动画有疑问,所以请看一下这段代码,如
我正在阅读有关继承的内容。我尝试做这个例子,但有些问题。我写了所有的代码,但没有显示某个应该继承的方法。该方法是add(GObject arg) 这是该类的代码: package ExistingCl
我是一名优秀的程序员,十分优秀!