upstream es1_r_sempter { #fair; server 10.0.18.1:9200; server 10.0.18.2:9200; server 10.0.18.3:9200; } server { listen 18100; server_name r.es1.sempter; location / { proxy_pass http://es1_r_sempter; } #access_log off; access_log logs/es.access.log main; }################################################## upstream es2_r_sempter { #fair; server 10.0.18.1:9251; server 10.0.18.2:9251; server 10.0.18.3:9251; } server { listen 18101; server_name r.es2.sempter; location / { proxy_pass http://es2_r_sempter; } #access_log off; access_log logs/es.access.log main; }