zoukankan      html  css  js  c++  java
  • Let's Encrypt apache的配置

    描述,当前这个是已经处理过的。后面使用renew时出了些问题。所以还是用重新生成的方式。

    sudo yum install certbot

    ./certbot-auto certonly -d note.wojia.live -d xxx.wojia.live -d wojia.live -d www.wojia.live
    

    上面会有选项,选择APACHE 1

    生成后有90天的过期时间,因为我使用的是APACHE代理到DOCKER,所以不使用生动过期处理,到时间的时间就到服务器重新使用命令就行

    下面放一份代理配置以供以后抄用

    #-------------------------------#
    <VirtualHost *:443>
      SSLEngine on
      SSLProxyEngine On
      SSLProxyVerify none
      ServerName note.wojia.live
      ServerAlias note.wojia.live
      <Proxy *>
        Require all granted
      </Proxy>
          ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass / http://127.0.0.1:1089/
      ProxyPassReverse / http://127.0.0.1:1089/
      Include /etc/letsencrypt/options-ssl-apache.conf
      ServerAlias note.wojia.live
    SSLCertificateFile /etc/letsencrypt/live/note.wojia.live/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/note.wojia.live/privkey.pem
    </VirtualHost>
    #########################

      

    上面代理到docker开的端口
  • 相关阅读:
    PHP全部手册
    你必须收藏的GitHub技巧
    PV和并发
    api接口
    LeetCode 14. 最长公共前缀
    LeetCode 1037. 有效的回旋镖
    LeetCode 242. 有效的字母异位词
    LeetCode 151. 翻转字符串里的单词
    LeetCode 22. 括号生成
    LeetCode 面试题05. 替换空格
  • 原文地址:https://www.cnblogs.com/bfyang5130/p/12839474.html
Copyright © 2011-2022 走看看