upstreamhello.test.com{
server192.168.1.221;
}
server{
listen10;
#server_namehello.test.com;
access_loglogs/hello.test.com.access.logmain;
location/{
proxy_passhttp://192.168.1.221:10000;
proxy_set_headerHost$host;
#proxy_set_headerX-Real-IP$remote_addr;
#proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
}
}
server{
listen11;
#server_namehello.test.com;
access_loglogs/hello.test.com.access.logmain;
location/{
proxy_passhttp://192.168.1.222:10001;
proxy_set_headerHost$host;
#proxy_set_headerX-Real-IP$remote_addr;
#proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;
}
}