BASE

NGINX

NGINX

Web infrastructure · Free

An open source HTTP server, reverse proxy, and cache: static files, app routing, and load balancing; NGINX Plus has separate terms.

Resource illustration: NGINX

Open resource ↗

What you can use for free

The open source component used locally or self-hosted for the stated workflow, within its license terms.

Paid features and costs

Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.

Access and limitations

Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.

Use cases

  • Configure a server for static files and an API
  • Check files, proxy requests, errors, and reloading after configuration validation

Example workflow

A possible workflow; this is not a report of hands-on testing.

Configure a server for static files and an API

Before you start

  • A test website, upstream API, and server block configuration.
  • A test project and completion criteria for the task: Configure a server for static files and an API.

Steps

  1. Set up NGINX to test: A test website, upstream API, and server block configuration.
  2. Check files, proxy requests, errors, and reloading after configuration validation.
  3. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

Check your result

  • The cache does not expose private responses; redirects and request body limits are consistent.
  • Check the result against a reference example; separately confirm the terms of any assets and external services used.

Choosing NGINX

Configure a server for static files and an API

Choose this when

  • Configure a server for static files and an API
  • Check files, proxy requests, errors, and reloading after configuration validation

Consider alternatives when

  • When choosing for this topic, compare NGINX with Caddy. A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
  • When choosing for this topic, compare NGINX with HAProxy. A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

Things to consider

  • Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
  • Terms of use: BSD-2-Clause
  • Open-source NGINX is listed under BSD-2-Clause; enterprise distributions and support are provided separately. Listed capabilities do not mean they are enabled and correctly configured in your server block.

Frequently asked questions

What can you use for free in NGINX?

The openly available portion, used locally or self-hosted for the stated use case within its license terms.

What additional costs might arise with NGINX?

Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.

What terms of use matter for NGINX?

BSD-2-Clause

How do you get started with NGINX?

Set up NGINX to test: A test website, upstream API, and server block configuration. Check files, proxy requests, errors, and reloading after configuration validation. Integrate the checked version into your project; document its configuration, limitations, and recovery method.

What roles can NGINX perform in front of an application?

NGINX serves static files, reverse proxies and caches, balances backends, and proxies TCP/UDP and mail. HTTP capabilities include TLS/SNI, HTTP/2 and HTTP/3, request/connection limits, rewriting, access controls, and request mirroring. The feature set depends on configuration and modules.

Related tasks and approaches

  • Caddy

    A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

  • HAProxy

    A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

  • Traefik Proxy

    A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

License

BSD-2-Clause

BSD2-Clause — free use with notices

Use, modification, and distribution of source code and binaries are permitted. Retain the copyright, conditions, and warranty disclaimer in source code; reproduce them in documentation or accompanying materials for a binary release. This license does not determine a separate service's pricing or support.

License terms

Technologies and topics

  • NGINX
  • Web infrastructure

Sources

Other resources