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.
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.
- An AWS account
- Basic knowledge of Linux command line
- A domain name (optional, but recommended for SSL)
- Use Windows Subsystem for Linux (WSL) or VirtualBox to set up a Linux environment.
- 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.
- SSH into your EC2 instance.
- Install NGINX using your package manager.
- Configure NGINX to serve your application.
- Install Certbot for Let's Encrypt.
- Obtain and install SSL certificates for your domain.
- Set up a Cloudflare account.
- Configure your DNS settings to use Cloudflare for additional security.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or suggestions.