Monthly Archives: November 2015

NGINX: Simple Load Balancing

Simple Load Balancing nginx.conf http { upstream myproject { server 127.0.0.1:8000 weight=3; server 127.0.0.1:8001; server 127.0.0.1:8002; server 127.0.0.1:8003; } server { listen 80; server_name www.domain.com; location / { proxy_pass http://myproject; } } }

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in How To Guides, Little Guides, Personal Projects | Tagged , , | Leave a comment

NGINX: Server Block Examples

Server Block Examples Note: “VirtualHost” is an Apache term. NGINX does not have Virtual hosts, it has “Server Blocks” that use the server_name and listen directives to bind to tcp sockets. Two Server Blocks, Serving Static Files http { index … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in How To Guides, Little Guides, Personal Projects | Tagged , , , | Leave a comment

VyOS/Vyatta GRE Encrypted Tunnels

Setting up an Encrypted GRE Tunnel between 2 sites. Set up the IPSEC stuff first. edit vpn ipsec site-to-site peer set authentication mode pre-shared-secret set authentication pre-shared-secret dflkgajdksdlgkltijwlelsdngslk set connection-type initiate set ike-group IKE-GRE set local-address set tunnel 0 allow-nat-networks … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in Little Guides, Personal Projects | Tagged , , , , | Leave a comment

Ubiquiti Edgemax Dual WAN With Failover Initial Setup

Preface A while ago, i decided to convert my home network to more “professional” gear. My existing setup had been performing great for years, but as line speeds continue to increase, and the number of connected devices seem to skyrocket, … Continue reading

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in Little Guides, Personal Projects | Tagged , , , , , , | Leave a comment