Installs NGINX web server from the official nginx.org repository.
Default Locations
- Web root:
/usr/share/nginx/html
- Config:
/etc/nginx/nginx.conf
and/etc/nginx/conf.d
- Logs:
/var/log/nginx/
Access
Open your browser: http://<server-ip>/
Service Control Commands
sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl restart nginx sudo systemctl status nginx sudo systemctl reload nginx