Skip to content

This repository offers a step-by-step guide to deploy an NGINX web server with SSL on AWS EC2, securing HTTP access for applications. It covers Linux setup with WSL or VirtualBox, EC2 instance configuration, NGINX setup, and SSL via Let's Encrypt, with optional Cloudflare DNS and security enhancements.

Notifications You must be signed in to change notification settings

abhixsh/nginx-ssl-ec2-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NGINX Web Server with SSL on AWS EC2

This repository provides a step-by-step guide to set up an NGINX web server with SSL on an AWS EC2 instance, ensuring secure HTTP access for your application.

Table of Contents

Introduction

This guide helps you configure an NGINX web server on AWS EC2 with SSL support to secure HTTP traffic. It includes instructions for setting up a Linux environment and managing configurations for NGINX and SSL certificates. For a detailed walkthrough, check out my article on Medium: Step-by-step Guide: Deploying NGINX Web Server with SSL on AWS EC2.

Prerequisites

  • An AWS account
  • Basic knowledge of Linux command line
  • A domain name (optional, but recommended for SSL)

Setup Guide

1. Configuring the Linux Environment

  • Use Windows Subsystem for Linux (WSL) or VirtualBox to set up a Linux environment.

2. Setting Up an EC2 Instance

  • Launch an EC2 instance in your AWS account.
  • Select an Amazon Machine Image (AMI) and instance type.
  • Configure security groups to allow HTTP (port 80) and HTTPS (port 443) traffic.

3. Installing and Configuring NGINX

  • SSH into your EC2 instance.
  • Install NGINX using your package manager.
  • Configure NGINX to serve your application.

4. Securing the Server with SSL

  • Install Certbot for Let's Encrypt.
  • Obtain and install SSL certificates for your domain.

5. Optional: Enhancing Security with Cloudflare

  • Set up a Cloudflare account.
  • Configure your DNS settings to use Cloudflare for additional security.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or suggestions.

About

This repository offers a step-by-step guide to deploy an NGINX web server with SSL on AWS EC2, securing HTTP access for applications. It covers Linux setup with WSL or VirtualBox, EC2 instance configuration, NGINX setup, and SSL via Let's Encrypt, with optional Cloudflare DNS and security enhancements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published