nginx https

安装过程: 环境: centos7, openresty 使用certbot 生成证书 yum install epel-release -y && yum update -y yum install -y openresty certbot gettext 设置 openresty/nginx 80 端口 server { listen 80; server_name _; location ^~ /.well-known/acme-challenge/ { index index.html index.htm; root html; } location = /.well-known/acme-challenge/ { return 404; } } 重启 nginx/openresty, 执行 certbot certonly -m ${自己的邮箱} --webroot -d ${域名} -w ${ngx www 路径目录} --agree-tos > /tmp/cert.log openssl dhparam 2048 -out dhparam.

Continue reading

Author's picture

Matt

My Blog

Nil

China