This project demonstrates how to deploy a simple HTML website on an AWS EC2 Ubuntu instance using the Nginx web server.
The website contains my basic details such as Name, College, Branch, Email, and Date.
- AWS EC2
- Ubuntu 24.04 LTS
- Nginx
- Linux
- HTML
- Selected Ubuntu 24.04 AMI
- Created a new key pair (.pem)
- Configured Security Group
- Allowed SSH (Port 22)
- Allowed HTTP (Port 80)
Connected securely using SSH from Windows PowerShell.
sudo apt updatesudo apt install nginx -y
- Created the HTML file
- Stored it inside:
/var/www/html/
###Verified the website using the EC2 Public IP.

sudo apt update
sudo apt install nginx -y
sudo systemctl status nginx
sudo systemctl restart nginx
df -h
free -h
ps auxBrowser │ HTTP Request │ AWS EC2 (Ubuntu 24.04) │ Nginx │ index.html
- Initially, SSH connection timed out.
- Identified that the issue was related to the Security Group inbound rule.
- Updated the SSH rule and successfully connected to the EC2 instance.
- Launching and configuring an EC2 instance.
- Connecting to EC2 using SSH.
- Installing and managing Nginx.
- Hosting a static website on AWS.
- Basic Linux server administration.
- Troubleshooting Security Group issues.
Amrit Raj
Galgotias University
Electronics & Communication Engineering (AIML)