install nginx on mac with homebrew

Q: How do I install nginx?

Bash
$ brew install nginx  
$ brew services info nginx
$ brew services start nginx

# Use this to search for all nginx files
$ find /usr | grep nginx
# Use this to search for all nginx conf files
$ find /usr -path '*nginx*' -name '*.conf'
showing output

Q: Where is nginx configured?

  • based on the docs, it’s a nginx.conf file somewhere is `/usr/local/nginx/conf` or others
nginx docs (https://nginx.org/en/docs/beginners_guide.html)

Q: Where is nginx hosted on homebrew?

homebrew docs (formulae.homebrew.sh)