This documentation explains how to host a simple static website on an Azure Virtual Machine using Ubuntu Linux and Nginx.

In this project, I will first create my website locally, then deploy an Ubuntu virtual machine in Microsoft Azure and configure the required network resources (VNet, Subnet and NSG). After that, I will connect to the server using SSH and install Nginx to serve the website.

The website files will be uploaded to the virtual machine and placed in the Nginx web directory so the site can be accessed through the server’s public IP address. Finally, I will map a DNS record to the server and test the website before deleting the resources.

This guide follows a simple hands-on approach and covers:

Step 1: Download a Website Template

  1. Log in to https://themewagon.com.
  2. In the search bar, type “portfolio”.
  3. Download a portfolio template of your choice.
  4. Edit the template to your specifications.

image.png

Step 2: Extract and Open the Project Folder

  1. Move the downloaded website template to a new folder that you created and rename the folder as desired.

  2. Right-click on the downloaded template file (for example, Kelly) and select Extract All.

  3. After extraction, right-click on the extracted project folder and select Open in Terminal.

    This will open Windows PowerShell in that folder.

image.png