nginx
Summary #
web server
on macOS #
useful commands #
brew install inginx
brew services restart/info/start/stop nginx
nginx -s reload # to hot reload configs the config without downtime
Issue faced #
After adding the configurations in nginx, I was facing a PID issue: PID file or number not found, was able to resolve this issue by using stackoverflow answer
Important directory and files locations #
- Add configs in -> /opt/homebrew/etc/nginx/servers
- Default config -> /opt/homebrew/etc/nginx/nginx.conf
- Logs will be in -> /opt/homebrew/var/log/nginx
- Default webroot is -> /opt/homebrew/var/www
- Default listen address -> http://localhost:8080