Nginx Deep Dive: Full-Stack Deployment on AWS EC2

Overview
This project demonstrates the deployment of a full-stack notes application on an AWS EC2 instance. The process involves:
- Installing and configuring Nginx.
- Serving a static
index.html file.
- Cloning and containerizing a full-stack notes application.
- Running the application using Docker.
- Configuring Nginx as a reverse proxy to route traffic to the application.
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

<aside>
💡
The main folders on which Nginx operates is
- sites-enabled
- sites-available
- 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