惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
L
LangChain Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
Docker
Cyberwarzone
Cyberwarzone
腾讯CDC
V
Vulnerabilities – Threatpost
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
AWS News Blog
AWS News Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
MyScale Blog
MyScale Blog
C
CERT Recently Published Vulnerability Notes
T
Threat Research - Cisco Blogs
S
Securelist
C
Cybersecurity and Infrastructure Security Agency CISA
Security Archives - TechRepublic
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
Security Latest
Security Latest
N
News and Events Feed by Topic
Attack and Defense Labs
Attack and Defense Labs
V
Visual Studio Blog
博客园 - 司徒正美
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
Intezer
P
Privacy International News Feed
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
O
OpenAI News
云风的 BLOG
云风的 BLOG
博客园_首页
雷峰网
雷峰网
M
MIT News - Artificial intelligence
Project Zero
Project Zero
I
InfoQ
Hacker News: Ask HN
Hacker News: Ask HN
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
S
Security Affairs
S
Secure Thoughts
Y
Y Combinator Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
美团技术团队
The GitHub Blog
The GitHub Blog
B
Blog
H
Hacker News: Front Page

老高的博客

WPF 自定义枚举编辑控件 - 老高的博客 2025年度开发趋势有感 - 老高的博客 2025 年终总结 - 老高的博客 MVVM 模式是什么? - 老高的博客 2024 年终总结 - 老高的博客 《飞驰人生2》观后感 - 老高的博客 2023 年终总结 - 老高的博客 项目总结:前后端分离的公司主页站点 - 老高的博客 C# 版本特性记录 - 老高的博客 2022 年终总结 - 老高的博客 在树莓派的 openSUSE 上安装 Nginx - 老高的博客 在树莓派的 openSUSE 上安装 .NET 6 2021 年终总结 - 老高的博客 从零开始学Python - 02.容器类型 - 老高的博客 让文章更生动 - 老高的博客 2020 年终总结 - 老高的博客 2019 年终总结 - 老高的博客 从零开始学Python - 01.基本类型 - 老高的博客 npm入门 - 老高的博客
为站点添加把锁 - 老高的博客
2017-09-19 · via 老高的博客

为站点添加把锁

动机

为了增强自己站点的安全性,同时提高站点在互联网中的权重,决定利用AWS的服务为站点提供SSL/TSL证书(https)。

面向人群

  • 已经掌握如何利用S3服务托管静态网站。
  • 已经拥有自己的域名。
  • 希望为自己的域名添加安全证书,可以通过https访问自己的静态网站。

在AWS Certificate Manager(ACM)申请证书

为自己的域名申请证书。比如blog.mute-g.com
注意,必须在“美国东部(弗吉尼亚北部)”区域申请。否则在CloudFront中无法使用。

在AWS CloudFront Manager(CF)建立分发(Distributions)

Step 1: Select delivery method

  • delivery method选择“Web”。

Setp 2: Create distribution

Origin Settings

  • Origin Domain Name选择托管成静态网站的S3存储桶。比如blog.mute-g.com

Distribution Settings

  • Alternate Domain Names(CNAMEs)里面填写要进行关联的域名,比如blog.mute-g.com
  • SSL Certificate选择Custom SSL Certificate,然后在下拉框中选择之前在ACM申请的证书。

点击Create Distribution

需要一段时间才能完成配置,等待Status变成Deployed
这时可以看到Domain Name列下面有一个xxxxx.cloudfront.net,这个地址下一步会用到。

去自己的域名托管商的管理页面,进行DNS设定。

  • 添加一个CNAME,将自己的域名比如blog.mute-g.com的目标设置成上一步记下来的xxxxx.cloudfront.net
  • 需要一点时间让所有设置生效。
  • 之后,可以通过http://blog.mute-g.com访问网站。
  • 如果使用https://blog.mute-g.com则会看到浏览器的地址栏前面出现了一个小锁头啦。

让http请求自动跳转到https

  • 在CloudFront Distributions一览页面选中自己的站点,点击Distribution Settings按钮。
  • Behaviors标签,点击Create Behavior,新建一个Redirect HTTP to HTTPS类型的条目。
  • 等待设置生效后,当我们通过http://blog.mute-g.com访问网站时,会自动跳转到https://blog.mute-g.com
comments powered by