Contents Introduction Prerequisites Installing Nginx Firewall Setting Testing the Installation on browser Managing the Nginx service with systemctl Conclusion Introduction...
Read MoreNginx is a high-performance HTTP, free and open-source reverse proxy server and is pronounced as “engine x”. In comparison to the Apache web server, Nginx can handle a much large number of concurrent connections and has a smaller memory per connection. Nginx is used to host the largest and high traffic sites on the internet. Nginx is one of the most popular webs or reverses proxy servers as it is more resource-friendly than Apache in most cases. Nginx has many usages other than a reverse proxy that is mail proxy, HTTP cache, and load balancing.
In this tutorial, we will discuss how to install Nginx on Ubuntu 18.04.
sudo apt update
sudo apt install nginx
sudo nginx -v
List the profiles available
sudo ufw app list
Available applications:
Nginx Full
Nginx HTTP
Nginx HTTPS
OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw status
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
Nginx Full ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)
sudo systemctl status nginx
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo systemctl disable nginx
sudo systemctl enable nginx
sudo nginx -t
Contents Introduction Prerequisites Installing Nginx Firewall Setting Testing the Installation on browser Managing the Nginx service with systemctl Conclusion Introduction...
Read MoreContents Introduction Prerequisites Creating Directory Structure Creating Server Blocks Summary Introduction Nginx Server Blocks can be used to run host...
Read More