美文网首页初见
nginx + CentOS 6 使用certbot 安装htt

nginx + CentOS 6 使用certbot 安装htt

作者: 朩浀樹佺 | 来源:发表于2018-04-22 22:26 被阅读26次

    1、进入网站https://certbot.eff.org
    2、选择

    image.png
    3、如果网站上的步骤执行时,首先在nginx上配置
    location ^~ /.well-known/acme-challenge/ {
       default_type "text/plain";
       root     /usr/share/nginx/html;
    }
    
    location = /.well-known/acme-challenge/ {
       return 404;
    }
    

    4、按照步骤进行执行

    wget https://dl.eff.org/certbot-auto
    chmod a+x certbot-auto
    
    $ sudo ./path/to/certbot-auto --nginx
    
    $ sudo ./path/to/certbot-auto --nginx certonly
    

    相关文章

      网友评论

        本文标题:nginx + CentOS 6 使用certbot 安装htt

        本文链接:https://www.haomeiwen.com/subject/yblhlftx.html