DEV Community

joeydanielsdev
joeydanielsdev

Posted on

SETTING UP NGINX SERVER ON UBUNTU

  • I installed deployed Ubuntu VPS on AWS EC2 and connected to it

Image description

Image description

  • Opened Ubuntu terminal and ran commands to install NGINX

sudo apt update
sudo apt install nginx
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ufw status
systemctl status nginx_

Image description

  • Navigate to edit the default Ubuntu Debian html file to my desired text using sudo nano command as it is a protected file

sudo systemctl reload nginx
cd /var/www/html
sudo nano index.nginx-debian.html

  • Restart Nginx using $sudo systemctl start nginx

Image description

Reference



- https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04
- https://chat.deepseek.com/

- https://hng.tech/hire/devops-engineers
- https://hng.tech/hire/cloud-engineers



Enter fullscreen mode Exit fullscreen mode

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)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit