• Home
  • The Song
  • The Avatar
  • The Cat
  • Contact the Cat

Gyp the Cat dot Com

Quick & Easy Nginx Load Balancer with Backend
Computers, internet

Quick & Easy Nginx Load Balancer with Backend

This will be a very quick and easy example.  Sometimes you may need to use Nginx as a front end, webcache, load balancer or front end proxy.  As a clue in Nginx speak they are all the same thing.

Things like this can come in very useful not only for load balancing but also if you’re navigating IPSec VPNs.

Open or create the site you wish to use Nginx as a front end for, for instance:

nano /etc/nginx/sites-enabled/gypthecat.com.conf

You will want the site to look like the following:

upstream www.gypthecat.com {
server 11.22.33.44;
}

server {
server_name www.gypthecat.com;
location / {
proxy_pass http://www.gypthecat.com;
}
access_log /var/log/nginx/access.log;
}

Save the file, and exit out.

Reload Nginx:

service nginx restart

And you should be good to go!  Keep an eye on /var/log/nginx/access.log for whats going on.

Related

Written by gyp - September 16, 2013 - 905 Views
Tags | nginx, proxy, security

You Might Also Like

How to Block Internet Access with Group Policy (GPO)

July 9, 2017

Installing Nginx (LEMP) on Ubuntu 11.10

April 29, 2012

Setting up Nginx with Cloudflare

September 19, 2013

No Comment

Please Post Your Comments & Reviews
Cancel reply

Your email address will not be published. Required fields are marked *

Previous Post
Next Post

Latest Posts

  • Monitoring Tor Usage in Azure Sentinel, ASC, MDATP and ALA
  • HTTP to HTTPS Redirect on Azure CDN
  • Strongswan IPSec (Including Cryptomap) to Microsoft Azure Virtual Network Gateway
  • Black Ops 3 NAT Type Strict & PS4 NAT Type 3 with pfSense Fixed!
  • Sorry for the lack of posts
  • How to Block Internet Access with Group Policy (GPO)
  • Enforcing Microsoft Office 365 and Azure Tennancy with McAfee Web Gateway (MWG)
  • Scanning Subnet for Issuing Certificate Authority with OpenSSL
  • How to Configure Windows 2012 NPS for Radius Authentication with Ubiquiti Unifi
  • Steam & Valve IP Ranges

Top Posts & Pages

  • How to Block Internet Access with Group Policy (GPO)
    How to Block Internet Access with Group Policy (GPO)
  • How to Configure Windows 2012 NPS for Radius Authentication with Ubiquiti Unifi
    How to Configure Windows 2012 NPS for Radius Authentication with Ubiquiti Unifi
  • Tinyproxy A Quick and Easy Proxy Server on Ubuntu
    Tinyproxy A Quick and Easy Proxy Server on Ubuntu
  • Steam & Valve IP Ranges
    Steam & Valve IP Ranges
  • How to DNSPerf on Ubuntu 14.04 with Installation and Quick Start
    How to DNSPerf on Ubuntu 14.04 with Installation and Quick Start
  • IPSec VPN Host to Host on Ubuntu 14.04 with strongSwan
    IPSec VPN Host to Host on Ubuntu 14.04 with strongSwan
  • ISEB Business Analysis (BA) Revision Notes
    ISEB Business Analysis (BA) Revision Notes
  • Strongswan IPSec (Including Cryptomap) to Microsoft Azure Virtual Network Gateway
    Strongswan IPSec (Including Cryptomap) to Microsoft Azure Virtual Network Gateway
  • How to Add Different Disclaimers using alterMIME and Postfix based on Domain
    How to Add Different Disclaimers using alterMIME and Postfix based on Domain
  • IPSec VPN Host to Host on Windows 2012 R2 and Ubuntu 14.04
    IPSec VPN Host to Host on Windows 2012 R2 and Ubuntu 14.04

Tags

adobe apache2 blops business cheating cissp cloudflare cryptography dns exchange game google gyp internet iphone ipsec isc iseb linux mac marketing microsoft misc mw2 mx mysql nginx pfsense postfix proxy ps3 qualification revision security seo smtp socks squid ssh strongswan tinyproxy ubuntu windows 2012 wordpress xdecrypt.com
Gyp the Cat dot Com

Some rights retained Gyp the Cat Dot Com