Install Nginx, start the service, enable it at boot, and verify that the web server is responding.
sudo dnf install nginx
sudo systemctl enable --now nginxsudo apt update
sudo apt install nginx
sudo systemctl enable --now nginxnginx -v
sudo nginx -t
sudo systemctl status nginx
curl -I http://localhostContinue when the configuration test is successful and curl returns an HTTP response.
| Purpose | Standard path | Custom example |
|---|---|---|
| Main configuration | /etc/nginx/nginx.conf |
/Nginx/nginx.conf |
| Logs | /var/log/nginx/ |
Defined in the custom configuration |
| PID | Distribution default | /Nginx/pid/nginx.pid |