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)

Easy SSL certificates with Let's Encrypt

Let's Encrypt is a free, automated CA, which is made possible due to the sponsorship from companies such as the Electronic Frontier Foundation (EFF), Mozilla, Cisco, Akamai, University of Michigan, and over a dozen others. Organized by the Internet Security Research Group (ISRG), Let's Encrypt has already issued over 4 million certificates (as of May 2016), and the rate is growing exponentially.

While the free component may see the biggest drawcard, it's the automation that is the key point. For those who have previously gone through SSL generation through a traditional CA, it needs to have either file-based or email-based validation of the domain. If you have multiple domains, this process becomes quite time consuming to do over and over.

Thankfully, the Let's Encrypt CA is fully API-driven, and they even include...