首页 > 其他分享 >记录|在WordPress设立HTTPS

记录|在WordPress设立HTTPS

时间:2022-10-20 17:00:17浏览次数:75  
标签:记录 URL sudo WordPress HTTPS snap certbot

TL;DR: 根据 HTTPS for WordPress – WordPress.org Forums 上的指示操作即可。

获取 HTTPS 证书

Certbot 上去,填 My HTTP website is running [Nginx] on [Ubuntu 20] ,跳转到指南页面,根据指南:

先装snap:(参考 Installing snap on Ubuntu | Snapcraft documentation

sudo apt update
sudo apt install snapd

更新snap

sudo snap install core; sudo snap refresh core

移除certbotsudo apt-get remove certbot

安装certbot

sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot

HTTPS(二选一,或者sudo certbot certonly --nginx):

sudo certbot --nginx

选择你的 URL 即可。

执行时,会提示把debug log存在 /var/log/letsencrypt/letsencrypt.log

改WordPress地址(URL)

在你的主页URL后面加上/wp-admin/,形如 https://your.wordpress.site/wp-admin/ ,登录。

点击“设置”,在“WordPress地址(URL)”和“站点地址(URL)”上的http后面加上s即可。

点击“保存更改”,完成!

HTTPS for WordPress – WordPress.org Forums

标签:记录,URL,sudo,WordPress,HTTPS,snap,certbot
From: https://www.cnblogs.com/frank3215/p/wordpress-https.html

相关文章

  • ARC151 简要记录(A-E)
    VP4/6,E读错了。A:字典序最小,贪心,后面能填即可。B:处理字典序\(A<B\),经典枚举lcp。C:一眼鉴定为公平游戏且能分成若干段,暴力找sg函数规律。D:观察到不同位间操作顺......
  • 记录python3.7版本中 Django+celery 启动报错
     虚拟环境启动I报错Traceback(mostrecentcalllast):File"/data/.virtualenvs/cmdb/lib/python3.7/site-packages/gunicorn/arbiter.py",line589,inspawn_w......
  • 我的共享图书馆 https://calibre-web.leonli0534.xyz/
    https://calibre-web.leonli0534.xyz/用户名:user密码user  ......
  • 调试遇到的一些问题记录【持续记录】
    1.std::vector作为入参,跨dll传输引起的崩溃问题崩溃现象:监控传入的std变量:在dll外部时,std::vector_Myval2为std_Container_base0,在dll内部时,std::vector_Myval2为std_Con......
  • 根号算法学习记录
    根号算法专题分块基础根号平衡对于两个不同方面的复杂度,直接做的话一个很小,一个很大,我们用根号使得两者复杂度同阶级以降低总复杂度。这个叫根号平衡。一个典型的应用......
  • windows端ping 工具带时间戳保存ping记录到本地
    新建txt文件,复制代码保存到新建文件后,修改文件后缀为.bat文件后。双击运行后会在本地脚本相同路径生成日志记录文件@echooffset/phost=host:setlogfile=ping_%host......
  • deepin 20.7 安装记录(2022.10.18)
    1.安装机器,DellPowerEdgeT130Server, 8GRAM,2T*2HD,[email protected], 2*1000MNIC, 2.安装Deepin20.7(2022.9.1发布的版本)优点:软件仓库中自带:wp......
  • 记录React echart demo实践
    最近在了解学习React,找了个demoEcharts-based-on-React:基于react技术栈,使用Echarts,实现地图深钻、柱状图、折线图、散点图Echarts-based-on-React项目运行1.gitclone......
  • DFS略思维题做题记录
    洛谷:P4399[JSOI2008]BlueMary的职员分配链接代码:#include<iostream>usingnamespacestd;intn,x,y,z,A,B,Ans=INT_MAX;voidDepth_fs(intstaff/*员工*/,intmon......
  • 记录一次mybatis pagehelper count order by 不生效
    https://sample.blog.csdn.net/article/details/119216433?spm=1001.2101.3001.6650.5&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFrom......