dev-resources.site
for different kinds of informations.
Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS
Published at
11/23/2024
Categories
beginners
nginx
ec2
aws
Author
under2wenty
Author
11 person written this
under2wenty
open
INTRODUCTION
- EC2 (Elastic Compute Cloud): A scalable virtual server in AWS used to run applications and workloads.
- Ubuntu: A popular, open-source Linux operating system
- AWS (Amazon Web Services): A cloud platform providing computing, storage, and networking services.
- NGINX: is a reverse proxy and web server that is dependable and quick. It serves as a mediator between users and backend systems, distributes traffic among servers, and delivers web pages.
Creating EC2
- to Create an EC2 instance from AWS console search for EC2 on the search bar.
- Launch instance
- name your server and click on ubuntu
- configure the Amazon Machine Image, size and type, in my case, im leaving at default
- Select/create a new pair key
- allow http to have access to web server
- cross-check your settings and launch instance
- upon completion click on view all instances
Connect to EC2 Instance
- right click on the server created and connect
Install NGINX
- A terminal will pop out. we update to the latest package by typing sudo apt-get update
- Install Nginx from Ubuntu repository by typing sudo apt-get install nginx and press y when prompted
- to check the version of nginx installed, type in nginx -v
- we can check the status of the nginx by typing sudo systemctl status nginx
- Select the created server and copy the public ip
- paste the copied public ip address in a browser
Conclusion
Setting up an EC2 instance with Ubuntu and installing NGINX on AWS enables you to create a scalable, high-performance web server. This process equips you to host and serve web content efficiently while making full use of AWS cloud resources.
nginx Article's
30 articles in total
nginx-mod-http-geoip
read article
How to run a Nginx-web server
read article
ngx whitelist/blacklist module
read article
Nginx Simplified: Technical Insights with Real-World Analogies
read article
Nginx Configuration Tips for Secure Communication: Enabling mTLS and checking client fingerprint
read article
Building a Scalable Reverse Proxy Server like Nginx with Node.js and TypeScript
read article
Deploy NestJS and NextJS application in same server using pm2 and Nginx
read article
Setting Up an NGINX Reverse Proxy with a Node.js Cluster Using Docker
read article
การทำ HTTPS ด้วย Certbot และ Nginx บน Ubuntu Server
read article
How to configure Free SSL Certificate on Nginx using Certbot
read article
Docker Hands-on: Learn Docker Volume and Bind Mounts with Sample Projects using NGINX
read article
自建的git远程仓库,在push时413 Request Entity Too Large
read article
Optimize SvelteKit performance with brotli compression
read article
I’m running a Spring Boot application inside a Docker container on my VM. The application works fine over HTTP, and I can access all endpoints via http://127.0.0.1:8080. I’ve set up NGINX as a reverse proxy to serve HTTPS requests. No errors for http reqs.
read article
Deploying a MERN App on Azure: The Smart Way
read article
My First Full-Stack Deployment with Docker and NGINX as Load Balancer
read article
Streamlined Release Process for a Web Application: Trunk-Based Development with Feature Flags
read article
How to Install NGINX on Ubuntu 22.04
read article
Secure Nginx with Let's Encrypt on Ubuntu
read article
Kubernetes Ingress Controllers and NGINX Ingress: A Complete Guide
read article
What is HTTP 499 Status Code and How to Fix it?
read article
Docker Compose Demo: Running Multiple Services with Two Domains on Localhost
read article
Building a Production Stack: Docker, Meilisearch, NGINX & NestJS
read article
Step-by-Step Guide: Assigning a Namecheap Domain to DigitalOcean Hosting with Nginx
read article
Streamlining React CI/CD Pipelines with GitHub Actions
read article
Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS
currently reading
Installing Nginx Web Server on Linux: A Step-by-Step Guide
read article
Hosting multiple Websites on a single Nginx Server
read article
Unleashing the Power of NGINX as an API Gateway
read article
Installing Wordpress with Nginx in Ubuntu
read article
Featured ones: