Microsoft Azure | Connect to website without port using 443

Gage 1 Reputation point

VM Info:

  • Ubuntu 18
  • 2vcpus and 8gb ram
  • Running Express/HTTP (is that a problem?) server on Node

Currently, connecting to my website (ip: works but you have to include the port at the end of the website, even when using 443 and connecting using HTTPS.

I'm connecting to and it doesn't work but works. My NSG has HTTPS priority at 301, right above SSH at 300.

Edit: http://..*.185:443 works, not https
so it's a problem with not going to https at all

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,254 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,003 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Manu Philip 16,991 Reputation points MVP

    Looks like, you can correct it in Nginx config. open default file under the folder /etc/nginx/sites-enabled/ and add the contents similar to the following:
    I am not able to paste the code here. So, attaching it as a notepad


    Copy the file to /etc/nginx/sites-available/ and restart Nginx to see if it helps


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. Lex Li (Microsoft) 4,742 Reputation points Microsoft Employee

    When the browser navigates to, it uses SSL/TLS protocol to establish a connection to port 443.

    As in your case, you said that http://..*.185:443 works, we know that you mistakenly configured port 443 to work with HTTP, not HTTPS.

    You can find how to configure HTTPS sites from NGINX official sample,

       server {  
           listen              443 ssl;  
           ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;  
           ssl_ciphers         HIGH:!aNULL:!MD5;  
    0 comments No comments