I want to map a particular domain in nginx, and then have nginx round-robin to a list of servers that will response to http requests.
So I have nginx for www.domain1.com
Its a python application, and I have 10 instances of paste running on different ports that I want nginx to forward/proxy requests to using round-robin.
can it do this, if yes, how?
You can specify ports for each backend server in an upstream block in nginx:
Really, you'd be better off using something like haproxy for this, but nginx can reverse proxy to multiple servers at the backend.
Take a look at the upstream module for nginx http://wiki.nginx.org/NginxHttpUpstreamModule
Set upstream servers to the same weight for distributed round-robin balancing. e.g.
By default the weight is 1, so you technically don't need a weight of 10, but setting a higher default weight allows you to introduce a server with a lower weight easily.