title: Https require port 80 in url
body: <p>Using Nginx 1.12.1 version
  Without port no specified URL will not work for Https i.e <a href="https://test.domain.com:80" rel="nofollow noreferrer">https://test.domain.com:80</a></p>
  
  <p>Below is the code:</p>
  
  <pre><code>server {
          listen 80 default_server;
          listen [::]:80 default_server;
          ssl on;
          server_name ~^(?&lt;subdomain&gt;[^.]+)\.domain.com$;
  
          ssl_certificate /etc/ssl/ssl_certificate.cer;
          ssl_certificate_key /etc/ssl/sslnew.key;
  
          root /var/www/$subdomain;
          index index.html;
          location / {
                  try_files $uri $uri/ =404;
  
          }
  
  }
  </code></pre>
  
  <p>If I remove "SSL on" then https will not work but it will work without port no i.e test.domain.com.</p>