NGINX configurations

Hi, I have a problem. I have two VirtualMachine with two different IP. I am configuring my reverse proxy:

Balancer site upstream 1 {
ip_hash;
Server 0.0.0.0; (My IP)
}
Balancer site upstream2 {
ip_hash;
Server 0.0.0.0; (My IP)
}

server {
listen 8080;
server_name mysite1;
location / site1 / {
add_header Cache-Control no-cache;
proxy_pass balancer-site1 / site1 /;
}
}

server {
listen 8080;
server_name mysite2;
location / site2 / {
add_header Cache-Control no-cache; …

NGINX configurations