通配符SSL证书使网站变慢

时间:2018-08-30 14:35:51

标签: ssl nginx digital-ocean certbot

我安装了ubuntu 18.04 LT,安装了nginx的服务器,并使用certbot生成了ssl证书。每个https://请求都花费太多时间,返回失败。

无法访问该网站 花了太长时间才能回复'

chrome 中,刷新后会再次加载。 这是我的nginx配置文件。 /etc/nginx/sites-available/mysite.com

server {

    root /var/www/mysite.com/app;
    index index.html index.htm index.nginx-debian.html;

    server_name mysite.com *.mysite.me;

    location / {
            try_files $uri $uri/ =404;
    }

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot # mysite.com-0001/privkey.pem
    ssl_certificate /etc/letsencrypt/live/mysite.com-0001/fullchain.pem; 
    # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/mysite.com-0001/privkey.pem; 
    # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

0 个答案:

没有答案