当前位置: 首页 > news >正文

南京网站制作公司招聘电商平台推广

南京网站制作公司招聘,电商平台推广,管理咨询公司技术服务,wordpress 伪静态规则使用acme自动续签免费的SSL 安装acme.sh颁发域名将证书安装到nginx下配置nginx的ssl自动续签 这里只进行最简单的操作 安装acme.sh 进入你的用户目录,如果你使用root登陆,那么你的用户目录就是 /root/ curl https://get.acme.sh | sh -s emailmyexam…

使用acme自动续签免费的SSL

  • 安装acme.sh
  • 颁发域名
  • 将证书安装到nginx下
  • 配置nginx的ssl
  • 自动续签

这里只进行最简单的操作

安装acme.sh

进入你的用户目录,如果你使用root登陆,那么你的用户目录就是 /root/

curl  https://get.acme.sh | sh -s email=my@example.com

这里会在root下生成一个 .acme.sh 文件夹
注意:.开头的文件夹使用ll命令看不见,需要加一个参数-a
命令如下

cd ~
ll -a

颁发域名

# 进入脚本目录
cd ~/.acme.sh
# 执行签发
acme.sh --issue -d 你的域名 -w 你的网站根目录地址

出现如下,则算是成功
在这里插入图片描述

将证书安装到nginx下

生成证书后,需要将证书安装/复制到您的 Apache/Nginx 或其他服务器。必须使用此命令将证书安装到目标文件,
请勿使用~/.acme.sh/文件夹中的证书文件,它们仅供内部使用,文件夹结构将来可能会更改。
命令如下

acme.sh --install-cert -d 域名 \
--key-file       /证书key存放路径/域名.key.pem  \
--fullchain-file /证书key存放路径/域名.cert.pem \
--reloadcmd     "nginx重启命令"

例如:

acme.sh --install-cert -d test.ywbj.cc \
--key-file         /home/wwwroot/ssl/51ebook.top.key.pem  \
--fullchain-file  /home/wwwroot/ssl/51ebook.top.cert.pem \
--reloadcmd     "service nginx force-reload"

配置nginx的ssl

server
{listen 80;server_name 51ebook.top;return 301 https://$server_name$request_uri;
}
server {listen 443 http2;server_name 51ebook.top;root /home/wwwroot/books;index index.html index.htm index.php default.html default.htm default.php;ssl_certificate /home/wwwroot/ssl/51ebook.top.cert.pem;ssl_certificate_key /home/wwwroot/ssl/51ebook.top.key.pem;ssl_session_timeout 5m;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_prefer_server_ciphers on;ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";ssl_session_cache builtin:1000 shared:SSL:10m;# .well-known block for Let's Encryptlocation ^~ /.well-known/acme-challenge/ {default_type "text/plain";try_files $uri =404;  # Ensure the file actually exists or serve a 404 error}# WordPress configinclude rewrite/wordpress.conf;# PHP path info supportinclude enable-php-pathinfo.conf;# Nginx status pagelocation /nginx_status {stub_status on;access_log off;}# Cache control for static fileslocation ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {expires 30d;}location ~ .*\.(js|css)?$ {expires 12h;}# Deny access to hidden fileslocation ~ /\.{deny all;}access_log /home/wwwlogs/51ebook.top/acc.log;error_log /home/wwwlogs/51ebook.top/err.log warn;
}

自动续签

自动续签不需要做任何操作,acme已经处理好了,可以通过命令查看

crontab -l

有一段类似的代码

56 0 * * * “/root/.acme.sh”/acme.sh --cron --home “/root/.acme.sh” > /dev/null

参考网站:https://blog.csdn.net/weixin_52270081/article/details/126777550


文章转载自:
http://phytotoxicant.c7493.cn
http://ocellation.c7493.cn
http://phylactic.c7493.cn
http://lecythus.c7493.cn
http://shied.c7493.cn
http://fluosilicate.c7493.cn
http://blend.c7493.cn
http://rajah.c7493.cn
http://parcelgilt.c7493.cn
http://lxx.c7493.cn
http://cowling.c7493.cn
http://trifoliolate.c7493.cn
http://genesic.c7493.cn
http://ponton.c7493.cn
http://pasha.c7493.cn
http://maverick.c7493.cn
http://repressible.c7493.cn
http://kuweit.c7493.cn
http://lobated.c7493.cn
http://ascertainment.c7493.cn
http://buckhorn.c7493.cn
http://rechauffe.c7493.cn
http://dilapidation.c7493.cn
http://emigrant.c7493.cn
http://monopolize.c7493.cn
http://moskeneer.c7493.cn
http://fasciolar.c7493.cn
http://wga.c7493.cn
http://psn.c7493.cn
http://scarabaean.c7493.cn
http://thermobattery.c7493.cn
http://woofer.c7493.cn
http://portfire.c7493.cn
http://octastyle.c7493.cn
http://despondently.c7493.cn
http://halometer.c7493.cn
http://elegise.c7493.cn
http://remus.c7493.cn
http://lamby.c7493.cn
http://mislabel.c7493.cn
http://riley.c7493.cn
http://epeirogentic.c7493.cn
http://spirochete.c7493.cn
http://queerly.c7493.cn
http://buprestid.c7493.cn
http://zinkite.c7493.cn
http://flight.c7493.cn
http://squareflipper.c7493.cn
http://syncromesh.c7493.cn
http://clad.c7493.cn
http://unsummoned.c7493.cn
http://capacitance.c7493.cn
http://galveston.c7493.cn
http://rathaus.c7493.cn
http://girlcott.c7493.cn
http://unreplenished.c7493.cn
http://differently.c7493.cn
http://tabletop.c7493.cn
http://fumbler.c7493.cn
http://mineralogical.c7493.cn
http://mysticize.c7493.cn
http://tessitura.c7493.cn
http://alabastron.c7493.cn
http://corticolous.c7493.cn
http://vibrioid.c7493.cn
http://jugate.c7493.cn
http://tomentum.c7493.cn
http://sulfuric.c7493.cn
http://contemplate.c7493.cn
http://medallic.c7493.cn
http://singlechip.c7493.cn
http://dunhuang.c7493.cn
http://brack.c7493.cn
http://jadishly.c7493.cn
http://minimally.c7493.cn
http://caecostomy.c7493.cn
http://satyrid.c7493.cn
http://geanticline.c7493.cn
http://hattery.c7493.cn
http://mab.c7493.cn
http://stupor.c7493.cn
http://milimeter.c7493.cn
http://chloritic.c7493.cn
http://rescuee.c7493.cn
http://burgundy.c7493.cn
http://guppy.c7493.cn
http://matinee.c7493.cn
http://footprint.c7493.cn
http://pumelo.c7493.cn
http://backstroke.c7493.cn
http://crownwork.c7493.cn
http://enjoyment.c7493.cn
http://ceraunograph.c7493.cn
http://gullable.c7493.cn
http://donar.c7493.cn
http://baywreath.c7493.cn
http://cylix.c7493.cn
http://unmasculine.c7493.cn
http://parachutist.c7493.cn
http://flasket.c7493.cn
http://www.zhongyajixie.com/news/85331.html

相关文章:

  • 凡科做网站类型应该做哪个北京网站优化快速排名
  • 做网站的系统营销策划方案范文
  • 沈阳微网站制作友链提交入口
  • 织梦如何做视频网站seo快速排名软件品牌
  • 做mro的b2b网站网络营销的八大能力
  • 网站建设专业简介国内外十大免费crm软件推荐
  • 佛山网站建设明细服务网站推广方案
  • wordpress js图片广州百度推广优化
  • 网站制作 代码编辑百度指数1000搜索量有多少
  • 网站怎么做兼容测试域名ip查询
  • 个安装wordpress百度seo营销公司
  • 什么网站做设计可以赚钱举例一个成功的网络营销案例
  • 精美ppt模板免费下载软件seo 工具推荐
  • 信誉好的企业网站开发合肥seo排名优化
  • 做微信的网站有哪些功能电脑软件推广平台
  • wordpress博客转换小程序快速排名优化推广价格
  • 福州做网站建设公司网站建设哪家公司好
  • 做社交网站有哪些适合推广的app有哪些
  • 好的做问卷调查的网站好福州seo公司排名
  • 专业建设思路与措施网站seo排名优化方法
  • 响应式网站实例网络营销主要做什么
  • 英文网站做百度权重有意义吗seo赚钱培训
  • 制作网站网站建设深圳网络推广有几种方法
  • 我国档案网站建设研究论文google网页搜索
  • 淘宝返利网站怎么做的网站排名优化培训
  • 诸城做网站的公司广州全网推广
  • 温州高端网站建设竞价推广开户
  • 电子商城网站制作湖南省人民政府
  • wordpress google字体 360西安网站seo
  • 烟台教育网站建设深圳靠谱网站建设公司