Hi Guys,
I worked on a simple website and hosted it on EC2 and served using Nginx.
The website wasn’t designed or deployed by me, I just used it to practice and update my skills on Linux and Nginx.
Here are the steps I followed:
✅ Create and launch an EC2 Instance
Used Ubuntu OS
Make sure you allow ports 22 (SSH) and 80 (http)
✅Install Nginx
Sudo apt install nginx -y
Nginx -v
✅Downloaded the websites zipped file from a github repo (https://github.com/pravinmishraaws/Pravin-Mishra-Portfolio-Template)
wget https://github.com/pravinmishraaws/Pravin-Mishra-Portfolio-Template
Then I unzipped the downloaded zip file
First install zip:
sudo apt install zip
Now unzip the file:
unzip file.zip
✅Deploy Website Files to Nginx Web Directory
Copied all uzipped files to nginx web directory which is at /var/www/html
Then I made some modification to the index.html file
✅Verify the Deployment
Ensure Nginx is correctly serving the website:
curl your-public-ip
✅Access the Website using the servers Public IP
✅Now the Website is deployed on an Ubuntu VM with Nginx, accessible from a public IP.
Live Link (Available for 12hours): http://samplewebsite.cloudworks.com.ng/
I hope this was insightful
Till next time, always stay positive 👍




Top comments (0)