nginx

Installation
SKILL.md

Identity

  • Unit: nginx.service
  • Config: /etc/nginx/nginx.conf, /etc/nginx/sites-enabled/, /etc/nginx/conf.d/
  • Logs: journalctl -u nginx, /var/log/nginx/access.log, /var/log/nginx/error.log
  • User: www-data (Debian/Ubuntu), nginx (RHEL/Fedora)
  • Distro install: apt install nginx / dnf install nginx

Key Operations

  • Validate config: nginx -t
  • Full config dump: nginx -T (merged, useful for debugging includes)
  • Reload (no downtime): sudo systemctl reload nginx
  • Restart: sudo systemctl restart nginx
  • Test specific config: nginx -t -c /path/to/test.conf

Expected Ports

  • 80/tcp (HTTP), 443/tcp (HTTPS)
  • Verify: ss -tlnp | grep nginx
  • Firewall: sudo ufw allow 'Nginx Full' or sudo ufw allow 80,443/tcp
Related skills
Installs
1
GitHub Stars
5
First Seen
Mar 18, 2026