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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

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

Okay