Setup Proxy Server on EC2 with NGINX Proxy Server 🔥


I was working on my few EC2 instances and each was configured for Node.js Server. Before NGINX Proxy Server, I’d simply go to security groups and add an inbound rule for the specific port but that’s harmful opening up about the open port. 🥶

Screen Shot 2021-11-21 at 22.45.58.png
Security Group – AWS Console

Since every proxy address is stored in a configuration file like environment files for the server. Only one port is opened i.e. 80 by default for NGINX and another port is hidden and proxied safely.

server {
    listen 80;
    root /home/ubuntu/server;

This article is a kind of journal for me as well. The complete tutorial to set up NGINX Proxy Server on EC2 is here from the official NGINX page. Setup NGINX Proxy Server in AWS EC2. Thank you for your patience. 🚀

Sudeep Mishra

Sudeep Mishra


Leave a Reply

Your email address will not be published.

%d bloggers like this: