Skip to content

About

Hey, this is my AWS Cloud based assignment.....

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

AWS EC2 Website Hosting Assignment

Project Overview

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.

Technologies Used

  • AWS EC2
  • Ubuntu 24.04 LTS
  • Nginx
  • Linux
  • HTML

Steps Performed

1. Launched an EC2 Instance

  • Selected Ubuntu 24.04 AMI
  • Created a new key pair (.pem)
  • Configured Security Group
  • Allowed SSH (Port 22)
  • Allowed HTTP (Port 80)

EC2_Dashboard

EC2_dashboard

2. Connected to EC2

Connected securely using SSH from Windows PowerShell.

SSH_login

SSH_login

3. Updated the Server

sudo apt update

4. Installed Nginx

sudo apt install nginx -y
nginx_installation

5. Hosted the Website

  • Created the HTML file
  • Stored it inside:
/var/www/html/

###Verified the website using the EC2 Public IP. website_output

Linux Commands Used

sudo apt update
sudo apt install nginx -y
sudo systemctl status nginx
sudo systemctl restart nginx
df -h
free -h
ps aux

Project Architecture

Browser │ HTTP Request │ AWS EC2 (Ubuntu 24.04) │ Nginx │ index.html

Challenges Faced

  • 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.

Learning Outcomes

  • 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.

Author

Amrit Raj

Galgotias University

Electronics & Communication Engineering (AIML)

About

Hey, this is my AWS Cloud based assignment.....

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages