Book Image

CentOS 7 Server Deployment Cookbook

By : Timothy Boronczyk, IRAKLI NADAREISHVILI
Book Image

CentOS 7 Server Deployment Cookbook

By: Timothy Boronczyk, IRAKLI NADAREISHVILI

Overview of this book

CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You’ll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS.
Table of Contents (18 chapters)
CentOS 7 Server Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Installing NGINX as a load balancer


High traffic websites can be distributed to different servers, either to better spread out the workload or to achieve redundancy. Each server in the cluster of systems would have their own copy of the website or web application's files and be capable of satisfying the user's request. The trick then is to route the user's request to one of these servers in an orderly fashion. There are different approaches to this, but a common one is to set up a load balancer or reverse proxy server.

NGINX is somewhat newer to the scene than Apache; written a little over a decade ago specifically to handle high-load connections, it can function as a web server, proxy, cache, and load-balancer. In this recipe, we'll see how to set up NGINX as a load balancer to proxy requests between the client and a cluster of Apache servers.

Getting ready

This recipe requires a CentOS system with a working network connection. It assumes that you have other systems configured with Apache...