HNG Internship "DevOps Stage 0 - NGINX Configuration"
Onochie Uwabujo

Onochie Uwabujo @theuwabujo

Joined:
Feb 2, 2025

HNG Internship "DevOps Stage 0 - NGINX Configuration"

Publish Date: Feb 2
0 0

NGINX is a powerful, high-performance web server and reverse proxy widely used for hosting websites, load balancing, and serving as a gateway for applications. This guide will walk you through the installation and configuration of NGINX, ensuring optimal setup for your specific use case. Whether deploying a simple static website or configuring complex reverse proxy settings, mastering NGINX will enhance your server's efficiency, security, and scalability.

Requirements for Installation

  • Ubuntu Server (cloud or on Premise)
  • Nginx web Server

Steps
Create a Linux server on cloud provider of your choice or on premise server.

I provisioned EC2 instance running on Ubuntu Server 24.04 LTS on aws.

After provisioning of the ubuntu server was completed, remotely ssh into the instance following these steps;

mv keys.pem ~/.ssh
chmod 400 ~/.ssh/keys.pem
ssh -i ~/.ssh/keys.pem ubuntu@

Next Update and upgrade the server with this command

sudo apt update && sudo apt upgrade

Next step is to install nginx

Run this command
sudo apt install nginx -y

Now go to the web and search with the Server ip http:/// and see if the newly deployed nginx web server is available.

Next, navigate to the directory my where nginx web config application is hosted in to edit it using these commands;

cd /var/www/html
sudo nano index.html

Image description

After making changes, next is to restart nginx web server and also check the status to see if the server is running properly and this is done using this command.

sudo systemctl restart nginx
sudo systemctl status nginx

Next go to the web http:/// and see if the application is running properly with the newly update information

Image description

Personal Growth

The task was straight forward and i will say i didn't encounter issue and i hope to learn more and become better. It all fun and am really excited.

Looking to Hire the Best Engineers

HNG connects companies with the best engineers suited to their needs. Looking for top-tier talent to handle your DevOps, cloud infrastructure, and CI/CD tasks, HNG has the best developers available for hire and freelance jobs anywhere in the world.

Explore specialized talents available for hire:
Cloud Engineers
DevOps Engineers

Comments 0 total

    Add comment