Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task

Introduction Cloud Computing is a fundamental skill for DevOps professionals. This document outlines the steps I took to install and configure an NGINX web server on an AWS EC2 instance with an Ubuntu image installed. The goal here is to deploy a functional web server on AWS cloud infrastructure. Project Setup Deploy AWS EC2 Instance My instance name: My Nginx Server AMI: Ubuntu Server 24.04 Instance Type: t2 micro Key pair: nginx-web-key SG: Allow SSH traffic from 0.0.0.0/0 Connect to the EC2 instance Connect to the EC2 instance using the EC2 CMD and run sudo apt update to update the package list. Run Sudo apt install nginx -y to install the Nginx package. Start and enable Nginx on the web server Configure the html page, run sudo nano /var/www/html/index.html Edit the html contant Save and exit. Restart and check the status of the Nginx package. Status output Open a web browser, then copy and paste the EC2 public URL. Challenge Faced. My web page was not reachable until I opened the web page with Chrome incognito browser, that was when I was able to view the page. Conclusion As a beginner in achieving this stage 0 task, I was excited after completing this project.

Jan 31, 2025 - 13:48
 0
Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task

Introduction

Cloud Computing is a fundamental skill for DevOps professionals. This document outlines the steps I took to install and configure an NGINX web server on an AWS EC2 instance with an Ubuntu image installed. The goal here is to deploy a functional web server on AWS cloud infrastructure.

Project Setup
Deploy AWS EC2 Instance

  1. My instance name: My Nginx Server
  2. AMI: Ubuntu Server 24.04
  3. Instance Type: t2 micro
  4. Key pair: nginx-web-key
  5. SG: Allow SSH traffic from 0.0.0.0/0

Image description

Connect to the EC2 instance

  • Connect to the EC2 instance using the EC2 CMD and run sudo apt update to update the package list.

Image description

  • Run Sudo apt install nginx -y to install the Nginx package.

Image description

  • Start and enable Nginx on the web server

Image description

Image description

  • Configure the html page, run sudo nano /var/www/html/index.html

  • Edit the html contant

  • Save and exit.

Image description

  • Restart and check the status of the Nginx package.

Image description

  • Status output

Image description

  • Open a web browser, then copy and paste the EC2 public URL.

Image description

  • Challenge Faced. My web page was not reachable until I opened the web page with Chrome incognito browser, that was when I was able to view the page.

Conclusion

As a beginner in achieving this stage 0 task, I was excited after completing this project.