Book Image

NGINX Cookbook

By : Tim Butler
Book Image

NGINX Cookbook

By: Tim Butler

Overview of this book

NGINX Cookbook covers the basics of configuring NGINX as a web server for use with common web frameworks such as WordPress and Ruby on Rails, through to utilization as a reverse proxy. Designed as a go-to reference guide, this book will give you practical answers based on real-world deployments to get you up and running quickly. Recipes have also been provided for multiple SSL configurations, different logging scenarios, practical rewrites, and multiple load balancing scenarios. Advanced topics include covering bandwidth management, Docker container usage, performance tuning, OpenResty, and the NGINX Plus commercial features. By the time you've read this book, you will be able to adapt and use a wide variety of NGINX implementations to solve any problems you have.
Table of Contents (14 chapters)

Dynamic config reloading

In large, high-scale systems where it's critical to minimize downtime, changes requiring a restart of services require careful planning. If you have a Software as a Service (SaaS) style platform, having a delay before deploying changes or new customer signups could be quite detrimental to your operations.

System downtime can also be required in load balancing situations, where you need to add and remove application backends on the fly. Thankfully, NGINX Plus allows for the configuration to be reloaded without having to restart the services. In this recipe, we'll go through how to update your configuration with a dynamic reload.

Getting ready

We're using a basic recipe based on our load...