
NGINX Cookbook
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
All prices
More details
Other editions
Additional editions

Person
Tim Butler is currently working in the web hosting industry and has nearly 20 years of experience. He currently maintains hyper-converged storage/compute platforms and is an architect of high throughput web logging and monitoring solutions. You can follow him on Twitter using his Twitter handle, @timbutler, where he (infrequently) posts about hosting, virtualization, NGINX, containers, and a few other hobbies.
Content
- Cover
- Title Page
- Copyright
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: 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
- Chapter 2: 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
- Chapter 3: 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...
- Chapter 4: 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
- Chapter 5: 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
- Chapter 6: 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...
- Chapter 7: 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
- Chapter 8: 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
- Chapter 9: 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
- Chapter 10: 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
- Chapter 11: 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
- Chapter 12: 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
- Chapter 13: 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
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.