How to configure nginx load balancer


#1

I have a nginx reverse proxy load balancer setup on my local computer using 3 virtual boxes via vagrant, I would like to duplicate similar setup with cloud9 but it is not working. This is the nginx.conf file that I am using.

creating a load balancer

worker_processes 1;
events{
worker_connections 1024;
}

http {
upstream servers{
server http://server1-tiyper1.c9users.io;
server http://server2-tiyper1.c9users.io;
}

    server {
            listen 80;

            location / {
                    proxy_pass http://servers;
            }
    }

}