title: Setting nginx with ssl cant connect from outside
body: <p>I have setup an new nginx in linux server</p>
  <p>with the following sites-enable/</p>
  <pre><code>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
  
  }
  </code></pre>
  <p>ufw</p>
  <pre><code>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)
  </code></pre>
  <p>and above ufw</p>
  <p>but i cant connect from external. what do i miss?
  currently using letsencrypt ssl for above.</p>
  <p>Router forwarding hasbeen setup too
  <a href="https://i.stack.imgur.com/U2R8H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U2R8H.png" alt="enter image description here" /></a></p>