DEV Community

Discussion on: Setup Nginx with HTTPS on Azure VM using Certbot

Collapse
 
kiy0p profile image
Enzo

Hey, I am trying to get through this turorial but I am having some issues. I seem unable to contact the nginx server inside my azure vm. I authorised port 80 on my vm but nothing... Any tips ?

Collapse
 
hudaniabhee profile image
Abhee Hudani ☕

While authorising the port 80, have you used protocol as 'any' ? I'm not very sure about the protocols but 'any' is the one which helped me to connect it with my VM. Moreover, can you also check the ufw configuration ?

Collapse
 
kiy0p profile image
Enzo

Hey thanks for the quick reply !
I did use the any in protocol, here is my conf.
dev-to-uploads.s3.amazonaws.com/up...

Also what do you call ufw ? If that is the firewall conf I don't have any I believe
dev-to-uploads.s3.amazonaws.com/up...

I hope it helps.

Thread Thread
 
hudaniabhee profile image
Abhee Hudani ☕

Hi, actually I was talking about the ufw firewall that you have to config in linux VM.
And protocol looks great but did you try to connect your vm using public IP ?

Thread Thread
 
kiy0p profile image
Enzo

Hey ! Yes I have tried connecting with ssh using the public ip that doesn't work, only the dns with the port works. Also I just checked and my ufw is inactive.

Thread Thread
 
hudaniabhee profile image
Abhee Hudani ☕

Hello, I believe that you have to active ufw firewall. That might solve the problem

Thread Thread
 
kiy0p profile image
Enzo

Hey, unfortunatly enabeling the firewall didn't work for me, I still can't connect, any other things you have in mind ?

Thread Thread
 
hudaniabhee profile image
Abhee Hudani ☕

I'm sorry to hear that but I don't have any thing in my mind right now but I find anything new, I will let you know.