我的网站groceryshoptest.com
托管在Digital Ocean
Droplet 上,并配有Nginx
服务器。我使用了免费的 SSL让我们加密 certbot,我刚刚输入了一些命令,在etc/nginx/sites-available/groceryshoptest
文件中添加了一些配置并安装了证书,一切运行正常。后来我决定将服务器移至Linode
。所以我停止了之前的服务器,将 DNS 指向我的新服务器地址,安装了所有东西,它运行正常。然后我再次在新服务器上http
安装了证书。它显示一切都已成功安装。所以我的问题是,我可以从访问该网站,但无法从以下浏览器中访问Letsencrypt
Linode
Bangladesh
USA
ERR_TUNNEL_CONNECTION_FAILED
我的配置文件在这里
server {
server_name groceryshoptest.com;
root /var/www/html/shop;
index index.html;
location / {
try_files $uri $uri/ /index.html?$args;
}
listen [::]:443 ssl; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/groceryshoptest.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/groceryshoptest.com/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
}
server {
if ($host = groceryshoptest.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name groceryshoptest.com;
return 404; # managed by Certbot
}