Logo

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
Categories
4 categories in total
beginners
open
nginx
open
ec2
open
aws
open
Author
11 person written this
under2wenty
open
Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS

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. ec2
  • Launch instance Instance
  • name your server and click on ubuntu ubuntu
  • configure the Amazon Machine Image, size and type, in my case, im leaving at default default
  • Select/create a new pair key

blessing
pin

  • allow http to have access to web server

httpn

  • cross-check your settings and launch instance

cross check

  • upon completion click on view all instances instances

Connect to EC2 Instance

  • right click on the server created and connect

connect 123
asake

Install NGINX

  • A terminal will pop out. we update to the latest package by typing sudo apt-get update get update
  • Install Nginx from Ubuntu repository by typing sudo apt-get install nginx and press y when prompted press y
  • to check the version of nginx installed, type in nginx -v boluwatife
  • we can check the status of the nginx by typing sudo systemctl status nginx sudo systemctl
  • Select the created server and copy the public ip craete server
  • paste the copied public ip address in a browser downloaded

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
Favicon
nginx-mod-http-geoip
Favicon
How to run a Nginx-web server
Favicon
ngx whitelist/blacklist module
Favicon
Nginx Simplified: Technical Insights with Real-World Analogies
Favicon
Nginx Configuration Tips for Secure Communication: Enabling mTLS and checking client fingerprint
Favicon
Building a Scalable Reverse Proxy Server like Nginx with Node.js and TypeScript
Favicon
Deploy NestJS and NextJS application in same server using pm2 and Nginx
Favicon
Setting Up an NGINX Reverse Proxy with a Node.js Cluster Using Docker
Favicon
การทำ HTTPS ด้วย Certbot และ Nginx บน Ubuntu Server
Favicon
How to configure Free SSL Certificate on Nginx using Certbot
Favicon
Docker Hands-on: Learn Docker Volume and Bind Mounts with Sample Projects using NGINX
Favicon
自建的git远程仓库,在push时413 Request Entity Too Large
Favicon
Optimize SvelteKit performance with brotli compression
Favicon
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.
Favicon
Deploying a MERN App on Azure: The Smart Way
Favicon
My First Full-Stack Deployment with Docker and NGINX as Load Balancer
Favicon
Streamlined Release Process for a Web Application: Trunk-Based Development with Feature Flags
Favicon
How to Install NGINX on Ubuntu 22.04
Favicon
Secure Nginx with Let's Encrypt on Ubuntu
Favicon
Kubernetes Ingress Controllers and NGINX Ingress: A Complete Guide
Favicon
What is HTTP 499 Status Code and How to Fix it?
Favicon
Docker Compose Demo: Running Multiple Services with Two Domains on Localhost
Favicon
Building a Production Stack: Docker, Meilisearch, NGINX & NestJS
Favicon
Step-by-Step Guide: Assigning a Namecheap Domain to DigitalOcean Hosting with Nginx
Favicon
Streamlining React CI/CD Pipelines with GitHub Actions
Favicon
Connecting to an EC2 Instance with Ubuntu and Installing NGINX on AWS
Favicon
Installing Nginx Web Server on Linux: A Step-by-Step Guide
Favicon
Hosting multiple Websites on a single Nginx Server
Favicon
Unleashing the Power of NGINX as an API Gateway
Favicon
Installing Wordpress with Nginx in Ubuntu

Featured ones: