Deployment of Nginx web server on AWS - Management Console.

NGINX is a fast, efficient web server that can also act as a reverse proxy, load balancer, and HTTP cache. It’s designed to handle a lot of traffic at once, making it perfect for busy websites and apps. NGINX helps manage traffic by distributing it across multiple servers, improves performance by efficiently serving static content, and adds an extra layer of security by controlling access to backend servers and handling encryption. Overall, it's a versatile tool for boosting speed, managing loads, and securing web applications.

STEP 1

Go to AWS Management Console, navigate to the EC2 dashboard, and click on Launch Instance. Write the name of the server you are creating, mine is nginx-webserver...

Select Ubuntu Server 24.04 LTS or any AMI of your choice,? select instance type you want I used? t2.micro, create a pem key pair, check the HTTP/HTTPS button, and use other default settings. You can configure other things based on what you wish to achieve.?

This is the EC2 instance interface after launching it

STEP 2: CONNECTION?

Click on connect and it will take you take you to a page indicating many ways you can connect. You can connect using EC2 Instance Connect, Session Manager, SSH client, EC2 serial console, but for the purpose of this project i connected through EC2 Instance Connect and SSH client

This image shows four ways you can connect your instance


Click on? SSH client and locate your private key file. The key used to launch this instance is oregon-key.pem. Mine is stored directly in my downloads. Run this command, chmod 400"oregon-key.pem" if necessary, to ensure your key is not publicly viewable.

Connect to your instance using its Public DNS:? ssh -i "oregon-key.pem" [email protected]. You can also connect with the public IP in any CLI you choose.

Once you get into the? command line of your choice, run the following command

Sudo apt update -y

Sudo apt install nginx

Sudo systemctl start nginx

sudo systemctl enable nginx

Sudo systemctl status

Image showing that nginx is up and running

Then copy the public IP address of the server and paste it in the browser in this pattern. https://44.242.215.198 to see your NGINX server.

WELCOME TO INGINX


要查看或添加评论,请登录

Judith Levi的更多文章

  • Prompting 101.

    Prompting 101.

    To get good and precise answers from AI apply the following method. While prompting AI to ensure that you describe the…

  • Microsoft Entra SSO integration with Zendesk

    Microsoft Entra SSO integration with Zendesk

    Objectives: Control in Microsoft Entra ID who has access to Zendesk. Enable your users to automatically sign in to…

社区洞察

其他会员也浏览了