Problem scenario
You have an Nginx server that you want to be a traffic distributor to Apache web servers. What has to be done to configure Nginx’s HTTP load balancing function to relay inbound connection requests to Apache web servers?
Solution
Nothing special has to be done for the web servers. Nginx can be a reverse proxy to either Nginx web servers or Apache web servers. The “upstream backend {}” block in the file /etc/nginx/conf.d/default.conf in Nginx’s distributor instance merely has to have stanzas like these:
upstream backend {
server apache.web.server.com;
…
Continue reading “How Can Nginx Be an HTTP Load Balancer for Apache Web Servers?”