Results 1 to 2 of 2
  1. #1

    Default nginx load balancer config? - help! :)


    setup ta ko load balancer para web server gamit nginx. Kani ang naa sa akoa /etc/nginx/sites-available/default

    upstream server {
    server 192.168.1.101;
    server 192.168.1.102;
    }
    server {
    listen 80;
    location / {
    proxy_set_header X*Forwarded*For $proxy_add_x_forwarded_for;
    proxy_pass http://server;
    }
    }

    but if ako na i test ug run (nginx -t) naa error -

    nginx: [emerg] unknown directive "upstream server" in /etc/nginx/sites-enabled/default:1
    nginx: configuration file /etc/nginx/nginx.conf test failed

    base sa ako nakitan sa google, ila fix kay add lang sa http {} or i-add sa nginx.conf ni nga line (without quotes) "include /etc/nginx/sites-enabled/*;". Pero mao raman gihapon. nag edit nako sa default ug sa config same ra gihapon. create ko new VM para fresh install same ra gihapon. BTW mao ni ako gi basihan nga video - https://www.youtube.com/watch?v=SpL_hJNUNEI

    inputs will be greatly appreciated. thanks!

  2. #2
    This reply may seem very late with your post, but anyhow this might help a bit.

    This one has a bunch of good stuff.
    https://www.nginx.com/blog/load-bala...883.1458685578
    https://www.nginx.com/resources/admi...load-balancer/

  3.    Advertisement

Similar Threads

 
  1. Dual Wan Router (load balancing router)
    By etgo in forum Networking & Internet
    Replies: 7
    Last Post: 09-06-2007, 08:59 PM
  2. VPN LOAD BALANCING
    By sploy in forum Networking & Internet
    Replies: 0
    Last Post: 02-25-2007, 10:45 PM
  3. Kinsa na naka suway ug DI-LB604 Load Balancing Router ( D-LINK)?
    By cats_eye2000 in forum Networking & Internet
    Replies: 0
    Last Post: 10-05-2006, 03:20 PM
  4. LOAD BALANCER
    By dogtik007 in forum Networking & Internet
    Replies: 1
    Last Post: 09-20-2006, 07:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top