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 ...
Get Nginx Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.