In this lab, we configure both an Ubuntu web server and internet access over TCP port 80 (HTTP) with an Azure network security group.
Successfully complete this lab by achieving the following learning objectives:
- Connect to Ubuntu Virtual Machine
Log on to the Azure Portal using the credentials on the lab landing page.
Connect to the virtual machine using an SSH client. A few SSH clients for Windows can be found on the instructions portion of this page.
The credentials for the virtual machine are:
Username: azureadmin Password: ACG!2020!Lab
- Configure the Web Server
Using the SSH client, install the Nginx web server package using the Ubuntu Advanced Package Tool.
Once Nginx has been installed, delete the default start page in the web root directory.
Download the web application from the GitHub repository. Download the contents directly to the Nginx root web directory.
- Allow Inbound Internet Traffic
In the Networking pane of the virtual machine, click Add inbound port rule. Add a new inbound rule that allows all HTTP traffic into the virtual machine.
Verify that Nginx has been configured correctly and that traffic is now allowed by navigating a web browser to the public IP address of the web server. This is in the Azure Portal under the blade for the virtual machine.