🍺 BREW Explorer

← all formulae

nginx

brew install nginx v1.31.2 BSD-2-Clause

Lightweight HTTP(S) and reverse proxy server with IMAP/POP3 proxy support, written in C.

Why you might care

nginx is fast, memory-efficient, and handles high concurrency with an event-driven architecture—ideal for production web services, load balancing, and reverse proxying. It's simpler to configure than Apache for many common tasks and works well as a local development server or routing layer. A single binary with minimal dependencies.

Categories

Alternatives

Apache HTTP Server Caddy HAProxy Traefik
11.5k
30-day installs · #331
35.6k
90-day · #344
133.4k
365-day · #355

Runtime dependencies

Links

Caveats

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/.

Blurb generated by claude-haiku-4-5 on 2mo ago.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "Apache HTTP Server",
    "Caddy",
    "HAProxy",
    "Traefik"
  ],
  "build_dependencies": [],
  "categories": [
    "web-server",
    "proxy"
  ],
  "caveats": "Docroot is: $HOMEBREW_PREFIX/var/www\n\nThe default port has been set in $HOMEBREW_PREFIX/etc/nginx/nginx.conf to 8080 so that\nnginx can run without sudo.\n\nnginx will load all files in $HOMEBREW_PREFIX/etc/nginx/servers/.\n",
  "conflicts_with": [],
  "dependencies": [
    "openssl@3",
    "pcre2"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:48+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "nginx",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://nginx.org/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "nginx",
  "installs_30d": 11527,
  "installs_365d": 133375,
  "installs_90d": 35616,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-2-Clause",
  "llm_generated_at": "2026-06-20T23:44:12+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "nginx",
  "oldnames": [],
  "one_liner": "Lightweight HTTP(S) and reverse proxy server with IMAP/POP3 proxy support, written in C.",
  "optional_dependencies": [],
  "rank_30d": 331,
  "rank_365d": 355,
  "rank_90d": 344,
  "raw_hash": "0bbb0f28f2f502b8",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/n/nginx.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "xz": "build"
    },
    "libxcrypt"
  ],
  "version_head": "HEAD",
  "version_stable": "1.31.2",
  "versioned_formulae": [],
  "why_use_this": "nginx is fast, memory-efficient, and handles high concurrency with an event-driven architecture\u2014ideal for production web services, load balancing, and reverse proxying. It\u0027s simpler to configure than Apache for many common tasks and works well as a local development server or routing layer. A single binary with minimal dependencies."
}