upstream  server1{

server       10.18.203.16  //需要访问的域名。

server        10.18.203.17  //需要访问的域名。
server        10.18.203.18  //需要访问的域名。
}


  server{
                listen 80;
               listen [::]:80 ipv6only=on;
                server_name www.siddim.com;
                charset utf-8;
                #rewrite ^(.*)  http://siddim.com$1 permanent;

                location / { 
                        proxy_pass         http://server1;
                        proxy_set_header   Host             $host;
                        proxy_set_header   X-Real-IP        $remote_addr;
                        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
}
}