Where to start First steps track · 15 stages
Linux Labs

nginx

Services and systemd

A web server and reverse proxy whose configuration should be checked before applying changes.

nginx is a web server and reverse proxy. Configuration lives in /etc/nginx/ (sites in sites-available/ and sites-enabled/).

  • nginx -t — check the configuration syntax (do this before reload!)
  • systemctl reload nginx — apply the configuration without dropping connections

A common error is a missing ; in a directive: nginx -t shows the file and line.

Loading…