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

推荐订阅源

Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
N
News and Events Feed by Topic
SecWiki News
SecWiki News
T
The Exploit Database - CXSecurity.com
S
Security @ Cisco Blogs
H
Heimdal Security Blog
Security Latest
Security Latest
T
Threatpost
V2EX - 技术
V2EX - 技术
C
Cybersecurity and Infrastructure Security Agency CISA
GbyAI
GbyAI
The Last Watchdog
The Last Watchdog
Recent Announcements
Recent Announcements
P
Privacy International News Feed
K
Kaspersky official blog
P
Proofpoint News Feed
L
LangChain Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Threat Research - Cisco Blogs
博客园_首页
T
Tor Project blog
M
MIT News - Artificial intelligence
The Hacker News
The Hacker News
The GitHub Blog
The GitHub Blog
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
F
Full Disclosure
MyScale Blog
MyScale Blog
The Register - Security
The Register - Security
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
L
LINUX DO - 最新话题
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
O
OpenAI News
T
The Blog of Author Tim Ferriss
S
Schneier on Security
小众软件
小众软件
The Cloudflare Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Know Your Adversary
Know Your Adversary
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
Lohrmann on Cybersecurity
Vercel News
Vercel News

老高的博客

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