Host a WordPress Site using Windows 11 Azure VM

Garima Das 1,061 Reputation points
2023-07-11T12:23:04.5966667+00:00

I installed Xampp on a Windows 11 Azure Virtual Machine and created a WordPress website there. The Website is working as expected on the localhost. I now want to access this website from the internet using the Azure VM's Public IP. I tried changing the Xampp Apache server configuration files, but it did not work with the VM's Public IP.

I then tried to do the same while using the VM's Private IP and it worked. I wanted to access the website from anywhere through the internet and so with the Private IP it is not giving me that option.

Is there anyway I can make my Website live on the internet without migrating it anywhere?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.

0 comments No comments

Answer accepted by question author
Jackson Martins 10,631 Reputation points MVP
2023-07-11T12:32:39.5133333+00:00

Hi @Garima Das

Yes, you can make your website live without migrating it. In order to do so, you'll need to ensure that your Network Security Group (NSG) rules in the Azure portal are configured properly. Specifically, you need to allow inbound traffic to the port on which your web server (Apache in this case) is running, typically port 80 for HTTP and 443 for HTTPS.

Go to Azure portal, navigate to the Network Security Group (NSG) that's associated with your VM.

In the NSG settings, go to Inbound security rules.

Click on Add and create a new inbound rule. You'll need to allow traffic on the port that your website is using

In addition to setting the NSG rules, you'll also need to check your Windows Firewall settings inside your Azure VM:

After configuring both the Azure NSG and the Windows Firewall, you should be able to access your WordPress website from the internet using your Azure VM's public IP.

Get in touch if you need more help with this issue.

--please don't forget to "[Accept the answer]" if the reply is helpful--

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Oldest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.