DEV Community

Onochie Uwabujo
Onochie Uwabujo

Posted on

HNG Internship "DevOps Stage 0 - NGINX Configuration"

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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay