使用ssl设置nginx无法从外部连接

Setting nginx with ssl cant connect from outside

我在 linux 服务器中设置了一个新的 nginx

启用以下站点/

server {

        server_name ascohosting.space www.ascohosting.space;

        location / {
        root /var/www/ascohosting.space;
        index index.html index.htm;

        }

    listen *:443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/ascohosting.space/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/ascohosting.space/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 = www.ascohosting.space) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = ascohosting.space) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        listen *:80 default_server;
        server_name ascohosting.space www.ascohosting.space;
    return 404; # managed by Certbot

}

ufw

80/tcp                     ALLOW       Anywhere
443/tcp                    ALLOW       Anywhere
22/tcp                     ALLOW       Anywhere
OpenSSH                    ALLOW       Anywhere
Nginx Full                 ALLOW       Anywhere
443                        ALLOW       Anywhere
80/tcp (v6)                ALLOW       Anywhere (v6)
443/tcp (v6)               ALLOW       Anywhere (v6)
22/tcp (v6)                ALLOW       Anywhere (v6)
OpenSSH (v6)               ALLOW       Anywhere (v6)
Nginx Full (v6)            ALLOW       Anywhere (v6)
443 (v6)                   ALLOW       Anywhere (v6)

ufw以上

但我无法从外部连接。我想念什么? 目前在上面使用 letsencrypt ssl。

路由器转发也已设置

是我的路线问题。使用 ISP

设置的设置