Before we set up load balancing using the reverse proxy feature of nginx, we need to have a second identical server. Although as an experiment, you can configure another virtual server in nginx listening on a different port and use it, we will use another server that is configured identically to this primary server. The following is the virtual server configuration of server2, which is a separate physical server: The content of the index.php file in the document root is as follows:

Name:  Configuration of Server2.jpg
Views: 542
Size:  34.1 KB