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/;
    }
    }
    SEMrush
    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
    SEMrush
  2. RomanEpo

    RomanEpo Member

    Messages:
    94
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    43
    #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