我安装了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
}