Configration of Nginx Server

Published on


Configration of Nginx Server

Nginx Server Setup Debian based Distro (Ubuntu,Kali)

​ Package Name :- nginx

​ Installation :-

sudo apt install nginx

​ Service Start :-

sudo apt start nginx
sudo apt enable nginx

IMP :- Files should be stored in “/var/www/html” to be seen on the Web Page

Nginx Server in Red Hat based Distro (RHEL,CentOS,Fedora)

​ Package Name :- nginx

​ Installation :-

sudo dnf install nginx

​ Service Start :-

sudo apt start nginx
sudo apt enable nginx

IMP :- Files should be stored in “/usr/share/nginx/html” to be seen on the Web Page

Points to Note

  1. This commands will start an basic http server on port 80

Thank you for reading. This article is part of the PaperAstro starter template.