Preface What this book covers What you need for this book Who this book is for Sections Getting ready How to do it… How it works… There's more… See also Conventions Reader feedback Customer support Downloading the example code Downloading the color images of this book Errata Piracy Questions Let's Get Started Introduction A quick installation guide How to do it... Packages – RHEL/CentOS Packages – Debian/Ubuntu Compiling from scratch Debian/Ubuntu CentOS/RHEL Testing How to do it... There's more... Configuring NGINX How to do it... How it works... Enabling modules How to do it... See also Deploying a basic site How to do it... How it works... Basic monitoring How to do it... How it works... Real-time statistics How to do it... How it works... See also Common PHP Scenarios Introduction Configuring NGINX for WordPress Getting ready How to do it... How it works... There's more... WordPress multisite with NGINX How to do it... Subdomains See also Running Drupal using NGINX Getting ready How to do it... How it works... See also Using NGINX with MediaWiki Getting ready How to do it... See also Using Magento with NGINX Getting ready How to do it... How it works... See also Configuring NGINX for Joomla Getting ready How to do it... See also Common Frameworks Introduction Setting up Django with NGINX Getting ready How to do it... How it works.... See also Setting up NGINX with Express Getting ready How to do it... How it works.... See also Running Ruby on Rails with NGINX Getting ready How to do it... How it works... See also Easy Flask with NGINX Getting ready How to do it... How it works... Laravel via NGINX Getting ready How to do it... How it works... See also Meteor applications with NGINX Getting ready How to do it... How it works... High speed Beego with NGINX Getting ready How to do it... All About SSLs Introduction Basic SSL certificates Getting ready How to do it... How it works... Enabling HTTP/2 on NGINX How to do it... See also Configuring HSTS in NGINX How to do it... There's more... Easy SSL certificates with Let's Encrypt How to do it... See also Making NGINX PCI DSS compliant How to do it... How it works... See also OCSP stapling with NGINX How to do it... See also Achieving full A+ Qualys rating How to do it... How it works... See also Logging Introduction Logging to syslog How to do it... Remote syslog See also Customizing web access logs How to do it... See also Virtual host log format How to do it... Application focused logging How to do it... Logging TLS mode and cipher information How to do it... Logging POST data How to do it... Conditional logging How to do it... Using the Elastic Stack How to do it... Elasticsearch Logstash Kibana See also Rewrites Introduction Redirecting non-www to www-based sites How to do it... How it works... See also Redirecting to a new domain How to do it... How it works... There's more... Blocking malicious user agents How to do it... How it works... There's more... Redirecting all calls to HTTPS to secure your site How to do it... There's more... See also Redirecting pages and directories How to do it... Single page redirect Full directory redirect How it works... See also Redirecting 404 errors through a search page How to do it... How it works... Reverse Proxy Introduction Configuring NGINX as a simple reverse proxy Getting ready How to do it... How it works... There's more... See also Content caching with NGINX Getting ready How to do it... How it works... There's more... See also Monitoring cache status Getting ready How to do it... How it works... See also Microcaching Getting ready How to do it... How it works... Serving from cache when your backend is down Getting ready How to do it... How it works... There's more... See also SSL termination proxy Getting ready How to do it... See also Rate limiting How to do it... How it works... There's more... See also Load Balancing Introduction Basic balancing techniques Round robin load balancing Getting ready How to do it... How it works... There's more... See also Least connected load balancing Getting ready How to do it... How it works... Hash-based load balancing How to do it... How it works... There's more... See also Testing and debugging NGINX load balancing Getting ready How to do it... There's more... See also TCP / application load balancing How to do it... How it works... Easy testing There's more... See also NGINX as an SMTP load balancer How to do it... How it works... There's more... See also Advanced Features Introduction Authentication with NGINX Getting ready How to do it... How it works... There's more... See also WebDAV with NGINX Getting ready How to do it... How it works... See also Bandwidth management with NGINX Getting ready How to do it... How it works... There's more... See also Connection limiting with NGINX Getting ready How to do it... How it works... There's more... See also Header modification with NGINX Getting ready How to do it... Caching static content Removing server name and version Extra debug headers See also Docker Containers Introduction Installing Docker NGINX web server via Docker Getting ready How to do it... How it works... There's more... See also NGINX reverse proxy via Docker Getting ready How to do it... How it works... There's more... See also Docker Compose with NGINX Getting ready How to do it... How it works... See also NGINX load balancing with Docker Getting ready How to do it... How it works... See also Performance Tuning Introduction Gzipping content in NGINX Getting ready How to do it... How it works... There's more... See also Enhancing NGINX with keep alive Getting ready How to do it... How it works... See also Tuning worker processes and connections Getting ready How to do it... Worker processes Worker connections There's more... See also Fine tuning basic Linux system limits Getting ready How to do it... See also Integrating ngx_pagespeed Getting ready How to do it... How it works... There's more... See also OpenResty Introduction Installing OpenResty Getting ready How to do it... CentOS Ubuntu How it works... See also Getting started with OpenResty Lua Getting ready How to do it... How it works... See also Lua microservices with OpenResty Getting ready How to do it... How it works... There's more... See also Simple hit counter with a Redis backend Getting ready How to do it... How it works... See also Powering API Gateways with OpenResty Getting ready How to do it... How it works... There's more... See also NGINX Plus – The Commercial Offering Introduction Installing NGINX Plus Getting ready How to do it... CentOS Ubuntu See also Real-time server activity monitoring Getting ready How to do it... How it works... There's more... See also Dynamic config reloading Getting ready How to do it... How it works... There's more... See also Session persistence Getting ready How to do it... Cookie-based tracking Learn-based tracking Route-based tracking How it works... See also