1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Settings NGINX

Discussion in 'Site & Server Administration' started by Xenoriss, Dec 4, 2017.

  1. #2
    Hi, i have a problem. I have two VirtualMachine with two IP different. I'm configuring my reverse proxy:

    upstream balancer-site1{
    ip_hash;
    server 0.0.0.0; (my ip)
    }
    upstream balancer-site2{
    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;
    proxy_pass balancer-site2/site2;
    }
    }

    If I write in the browser "mioip/site2", is processed site1, and then site2. This results in an incorrect display.How can I solve the configuration with 2 virtualmachine is wrong?
     
    Xenoriss, Dec 4, 2017 IP
  2. RomanEpo

    RomanEpo Active Member

    Messages:
    127
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Is it possible to tell your scope of work with architecture ,so i will try to give you configuration.
     
    RomanEpo, Feb 20, 2018 IP