Skip to content
Advertisement

How to access website on a Linux server in Azure? [closed]

I decided to move to Azure virtual machine.

My problem is that I don’t know how to access the websites on the server. I have installed Apache and MySql (actually I’ve installed Virtualmin web control panel) and I’ve opened inbound ports (I created the vm with resource manager) according to instructions I’ve found in the net, and iptables is allowing trafic to port 80. However, when I try to access my website using the public ip address on vm properties the request times out.

Any ideas what is going on and what I’m doing wrong?

Advertisement

Answer

Make sure you open the outbound ports as well in azure management console. Whenever you set up a service like a web server, make sure that you open up the ports in the internal firewall ( depends on the distro you are using. For Centos 7 and above, it is “firewalld”, for older versions, it is plain iptables, for ubuntu, it’s “ufw”

Once you opened the ports in the firewall, open them in azure “end points”. It should work

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement