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

推荐订阅源

The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
L
LangChain Blog
Simon Willison's Weblog
Simon Willison's Weblog
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
I
Intezer
Know Your Adversary
Know Your Adversary
H
Heimdal Security Blog
博客园 - 叶小钗
B
Blog RSS Feed
F
Fortinet All Blogs
Hacker News: Ask HN
Hacker News: Ask HN
A
Arctic Wolf
小众软件
小众软件
Help Net Security
Help Net Security
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
Forbes - Security
Forbes - Security
Latest news
Latest news
AI
AI
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
CXSECURITY Database RSS Feed - CXSecurity.com
W
WeLiveSecurity
C
Cybersecurity and Infrastructure Security Agency CISA
人人都是产品经理
人人都是产品经理
Cyberwarzone
Cyberwarzone
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
O
OpenAI News
博客园 - 【当耐特】
T
Threat Research - Cisco Blogs
GbyAI
GbyAI
U
Unit 42
D
Darknet – Hacking Tools, Hacker News & Cyber Security
G
GRAHAM CLULEY
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
T
Threatpost
T
The Blog of Author Tim Ferriss
罗磊的独立博客

老高的博客

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