talira

nginx

Problems nginx solves

All 28 problems from nginx's listing.

  • serve a static website fast from my own Linux server with gzip compression and an open file cache
  • put one front door in front of several web apps on different ports and route by domain name
  • terminate HTTPS for my backend services and pass the requests on to them over plain HTTP
  • load balance requests across a few app servers and stop sending traffic to one that fails
  • cache responses from a slow backend so repeat requests never reach the app
  • run a PHP app through php-fpm behind a web server using FastCGI
  • rate limit requests and connections per IP address to stop a scraper hammering my site
  • proxy raw TCP or UDP traffic, like a database or DNS, to a pool of backend servers
  • reload my web server config or upgrade its binary without dropping the connections already open
  • serve my site over HTTP/2 and HTTP/3 from my own server
  • host several websites on one server with name-based virtual hosts
  • stream MP4 and FLV video files with seeking from a plain web server
  • proxy IMAP, POP3 and SMTP connections to backend mail servers after checking logins with an HTTP auth service
  • restrict an admin path to certain IP addresses or put it behind HTTP basic auth
  • copy production traffic to a test backend to try a new version against real requests
  • a web server that keeps ten thousand idle keep-alive connections in a few megabytes of memory
  • buy a supported enterprise build of our web server with active health checks and live reconfiguration through an API
  • serve a static website and its assets fast from my own server
  • put a reverse proxy in front of my Rails, Node or Python app server
  • terminate HTTPS in front of several apps on one machine
  • load balance requests across several backend servers
  • cache responses from a slow backend so repeat requests don't hit it
  • rate limit clients that hammer my API
  • route different domains and paths to different services on one IP
  • proxy raw TCP or UDP traffic such as a database or DNS through one front door
  • serve large file downloads and video efficiently with byte-range support
  • redirect HTTP to HTTPS and add security headers for every site
  • a mail proxy in front of IMAP, POP3 and SMTP servers

Back to nginx