nginx

Install command:
brew install nginx

HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server

https://nginx.org/

License: BSD-2-Clause

Development: Pull requests

Formula JSON API: /api/formula/nginx.json

Formula code: nginx.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 1.31.8
head ⚡️ HEAD

Depends on:

openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit
pcre2 10.49 Perl compatible regular expressions library with a new API

Uses from macOS: xz (build), libxcrypt

Binaries: nginx

Service:

Start now and at login: brew services start nginx
Run directly: $HOMEBREW_PREFIX/opt/nginx/bin/nginx -g daemon off;
Docroot is: $HOMEBREW_PREFIX/var/www

The default port has been set in $HOMEBREW_PREFIX/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in $HOMEBREW_PREFIX/etc/nginx/servers/.

GitHub Packages downloads:

Last 30 days67,508
Downloads5,126,431
Analytics install events (30 days)9,575
Downloads / install events (30 days)7.1×

Source: GitHub Packages, fetched 2026-11-12T00:52:28Z. Analytics dates: 2026-10-13 to 2026-11-12. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs9,55322,094114,818
Installs (--HEAD)2242200
Installs on Request9,52422,025114,519
Installs on Request (--HEAD)2242200
Build Errors19