Yu Sun
March 19, 2010 11:22PM
you can try this:
1.configure two nginx instance at 192.168.1.124 in two ports(one for 80
and the other for 8080).
in the 80 nginx.conf, use upstream
upstream myproject {
server 192.168.1.140:8080;
server 192.168.1.124:8080;
}

in the 8080 nginx.conf, do not set up proxy config

2. at 192.168.1.140 set up the 8080 nginx instance without the proxy
config.


you should seperate the proxy server(192.168.1.140:80) and the
backends(192.168.1.140:8080,192.168.1.124:80)

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

My Load Balancing configure is fail.

ultrawind March 18, 2010 10:12PM

Re: My Load Balancing configure is fail.

Yu Sun March 19, 2010 11:22PM

Re: My Load Balancing configure is fail.

ultrawind March 21, 2010 11:39PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready