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 dep…


This content originally appeared on DEV Community and was authored by isaac igwe

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.


This content originally appeared on DEV Community and was authored by isaac igwe


Print Share Comment Cite Upload Translate Updates
APA

isaac igwe | Sciencx (2025-01-31T12:37:22+00:00) Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task. Retrieved from https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/

MLA
" » Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task." isaac igwe | Sciencx - Friday January 31, 2025, https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/
HARVARD
isaac igwe | Sciencx Friday January 31, 2025 » Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task., viewed ,<https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/>
VANCOUVER
isaac igwe | Sciencx - » Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/
CHICAGO
" » Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task." isaac igwe | Sciencx - Accessed . https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/
IEEE
" » Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task." isaac igwe | Sciencx [Online]. Available: https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/. [Accessed: ]
rf:citation
» Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task | isaac igwe | Sciencx | https://www.scien.cx/2025/01/31/deploy-nginx-web-server-on-aws-ec2-ubuntu-server-devops-hng12-stage-0-task/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.