- Test the config (also shows its location)
nginx -t - Follow the error log
tail -f /opt/homebrew/var/log/nginx/error.log - Restart after changes
brew services restart nginx
- Test the config (also shows its location)Needs sudo
sudo nginx -tSite configs live in /etc/nginx/sites-available/. The default web folder is /var/www/html.
- Follow the error logNeeds sudo
sudo tail -f /var/log/nginx/error.log - Reload after changesNeeds sudo
sudo systemctl reload nginx
nginx is rarely run on Windows itself. Use it inside WSL (see Install WSL) and follow the Linux steps.