O'Reilly logo

Nginx Essentials by Valery Kholodkov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing outbound traffic

Nginx also has a variety of options for outbound traffic management:

  • Distributing outbound connections among multiple servers
  • Configuring backup servers
  • Enabling persistent connections with backend servers
  • Limiting transfer rate while reading from backend servers

To enable most of these functions, the first thing you need is to declare your upstream servers explicitly.

Declaring upstream servers

Nginx allows you to declare upstream servers explicitly. You can then refer to them multiple times as a single entity from any part of the http configuration. If the location of your server or servers changes, there is no need to go over the entire configuration and adjust it. If new servers join a group, or existing servers leave a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required