Deployed a static website on AWS EC2 using Git, GitHub, and Nginx

Published: (January 27, 2026 at 08:18 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Overview

As part of the DevOps Micro Internship (DMI) Cohort‑2, I completed an assignment that focused on applying Git, GitHub, and Linux deployment workflows. I built and versioned a small project, then deployed it to a live AWS EC2 server.

The workflow included:

  • Initialising a local Git repository, staging files, writing meaningful commit messages, and pushing changes to a remote GitHub repository.
  • Deploying the versioned code to an Amazon Linux EC2 instance.
  • Installing and configuring Nginx to serve static content.
  • Managing file ownership and permissions, and troubleshooting 403 Forbidden errors caused by differences between Amazon Linux and Ubuntu Nginx defaults.

Live Application

The site is publicly accessible at:
http://44.223.39.197

Key Takeaways

  • Git provides a clear version history and supports controlled deployments.
  • Deploying a static website on AWS EC2 with Nginx involves server setup, permission handling, and configuration verification.
  • Understanding OS‑specific defaults (Amazon Linux vs. Ubuntu) is crucial for troubleshooting.

Acknowledgements

Thanks to Pravin Mishra, Lead Co‑Mentor Praveen Pandey, and co‑mentors Onuche Paul, Abhishek Makwana, and Mobarak Hosen for their guidance throughout the internship.

Community

This post is part of the DevOps Micro Internship (DMI) Cohort‑2 by Pravin Mishra. Join the Discord community:
https://lnkd.in/dBWEZfBZ


Tags: DevOps Linux AWS Nginx ReactJS CloudComputing DMI LearningInPublic

Back to Blog

Related posts

Read more »

DAY3 -Monitoring & Scaling

Overview Today’s hands‑on lab covers monitoring and scaling EC2 instances using an Application Load Balancer ALB, an Auto Scaling Group ASG, and CloudWatch. Ne...

30.Delete EC2 Instance Using Terraform

markdown !Cover image for 30.Delete EC2 Instance Using Terraformhttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/htt...

Design Secure Access To AWS Resources

Exam Guide: Solutions Architect – Associate 🛡️ Domain 1 – Design Secure Architectures 📘 Task Statement 1.1 > Secure access means you can clearly answer the f...