nginx: safe reload after editing a server block
A short routine to avoid taking a live site down because of a typo.
Check syntax first, confirm the active config path, and reload only after that. A full restart is rarely needed for a normal server block edit.
sudo nginx -t
sudo systemctl reload nginx
systemctl status nginx --no-pager
journalctl -u nginx --since "10 min ago" --no-pager
Verify the result
If nginx -t reports syntax is ok and the journal has no fresh emerg lines, the reload is clean.