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)

Integrating ngx_pagespeed

As the kings of high performance, Google has given us many tools and enhancements that have benefited the web world enormously. Google Chrome (as of 2017) has over 60 percent of the browser market share and its drive for performance has forced other browsers to play catch-up.

Not to be outdone at the server level, Google also has vested interest in ensuring that websites are highly performant as well. This is because faster sites offer a better user experience, which is important when you're trying to offer highly relevant search results. To expedite this, Google released ngx_pagespeed, which is a module for NGINX that tries to apply Google's best practices to reduce both latency and bandwidth for websites.

While many (if not all) of these optimizations can be manually applied, or should be part of any highly-performant development workflow...