记录本博客网站配置https后的一些步骤及遇到一些问题
in 默认分类 with 20 comments

记录本博客网站配置https后的一些步骤及遇到一些问题

in 默认分类 with 20 comments

部署你的HTTPS,永久免费,自动续约。

1、本文基于NGINX,首先安装NGINX 并开启http_ssl_module

 ./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module -- 
 with-pcre=/usr/local/src/pcre-8.35 && make && make install

这里注意 http_ssl_module 必须要开启 并且注意编译命令的安装包目录是否正确

2、nginx 配置本博客通过域名访问

server {
    listen 80;
    server_name www.ailinlin.top;

    location / {
        proxy_pass http://IP:端口;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }

域名注册成功 并且配置过 DNS解析后通过上述的简单配置就可以通过域名访问本博客了。但此时还无法通过https访问

3、配置https访问本博客

Certbot 是一个由 Let's Encrypt 开发的免费开源工具,用于自动化部署和管理 SSL/TLS 证书。

它具有以下几个显著的好处:

本文介绍在nginx环境上的安装和使用certbot

4、配置https后 typecho 博客遇到的问题及解决方案

1、typecho 博客前端样式缺失

2、typecho 博客之前上传的图片无法访问

3、typecho 博客管理后台无法登陆切样式缺失

Responses
  1. 1

    1

    Reply
    1. lxbfYeaa
      @1

      555

      Reply
  2. 1

    1

    Reply
    1. lxbfYeaa
      @1

      555

      Reply
    2. lxbfYeaa
      @1

      1

      Reply
    3. lxbfYeaa
      @1

      1

      Reply
  3. 1

    1

    Reply
    1. lxbfYeaa
      @1

      555

      Reply
    2. lxbfYeaa
      @1

      1

      Reply
    3. lxbfYeaa
      @1

      1

      Reply
    4. lxbfYeaa
      @1

      1

      Reply
    5. lxbfYeaa
      @1

      1

      Reply
    6. lxbfYeaa
      @1

      1

      Reply
  4. 1

    1

    Reply
  5. 1

    555

    Reply
  6. 不错不错,我喜欢看

    Reply
  7. 怎么收藏这篇文章?

    Reply
  8. 看的我热血沸腾啊https://www.237fa.com/

    Reply
  9. 想想你的文章写的特别好https://www.ea55.com/

    Reply
  10. 想想你的文章写的特别好https://www.ea55.com/

    Reply