Deploying Nginx Server on AWS
Introduction
NGINX is open-source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.
Steps
Step1: First login to Aws Console and navigate to the Search bar for Ec2
Click to Launch Instance
Give a Name to a webserver and choose Ubuntu from Amazon Machin Image(AMI)
Take Instance Type T2.micro (free tier Eligible)
Step2: Make sure to make a PEM file for Instance It is a Key for login Into the instance
Leave All the things Default
The click on Launch Instance
Click On Instance ID
Step 3: Go to connect < SSH client then Copy the example Code and past It on the CMD of the Download folder because Our key was downloaded in that folder
Type YES
Step 4: Download Nginx
Make sure to update the system
suod apt install nginx -y
sudo systemctl start nginx
Step 4: Our Nginx server runs on port 80 which is HTTP we Enable that for ec2 Instance In Security Groups
Click on Save Rules
Copy the Public IP of the Instance And Boom
๐ Thank you so much for reading my blog! ๐ I hope you found it helpful and informative. If you did, please ๐ give it a like and ๐ subscribe to my newsletter for more of this type of content. ๐
I'm always looking for ways to improve my blog, so please feel free to leave me a comment or suggestion. ๐ฌ
Thanks again for your support!