How Do You Set up Nginx to Be a Reverse Proxy That Conveys Inbound Connections to the Web Server with the Fewest Active Connections?

Problem scenario
You want your website to perform well.  By default Nginx’s load balancing system uses the round-robin technique.  You want available yet under-utilized web servers to handle inbound connection requests (aka someone using a web browser to go to a web page).  Individual users can put a disparate load on a given Nginx instance.  Some website users will spend a significant amount of time on a web page.  Others will invoke various application features that will require more resources than others. 

How Do You Install Nginx on a CentOS/RHEL/Fedora Server?

Problem scenario
You want to install Nginx on a CentOS/RHEL/Fedora Linux server.  What do you do?

Solution
1.  Create a file here: /etc/yum.repos.d/nginx.repo

2.  It should have these five non-blank lines:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/
gpgcheck=0
enabled=1

3.  Run these commands:

sudo yum -y update
sudo yum -y install nginx
sudo systemctl start nginx