Nginx Deep Dive: Full-Stack Deployment on AWS EC2

image.png

Overview

This project demonstrates the deployment of a full-stack notes application on an AWS EC2 instance. The process involves:

Upgrading our server and installing nginx

sudo apt-get update
sudo apt install nginx
systemctl status nginx

To see what’s inside Nginx use this:

cd /etc/nginx/
ls

image.png

<aside> 💡

The main folders on which Nginx operates is

  1. sites-enabled
  2. sites-available
  3. nginx.conf </aside>

Now, let’s create a index.html file in this folder and let’s see if nginx can serve our index.html file

cd /var/www/html/

sudo vim index.html