
- 150 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
Nginx Essentials
About this book
This book is ideal for skilled web masters and site reliability engineers who want to switch to Nginx or solidify their knowledge of Nginx. Knowledge of Unix and webmaster skills are required.
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Nginx Essentials by Valery Kholodkov in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Development. We have over one million books available in our catalogue for you to explore.
Information
Nginx Essentials
Table of Contents
Nginx Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
eBooks, discount offers, and more
Questions
1. Getting Started with Nginx
Installing Nginx
Installing Nginx on Ubuntu
Alternatives
Installing Nginx on Red Hat Enterprise Linux or CentOS/Scientific Linux
Installing Nginx from source files
Downloading the Nginx source files
Troubleshooting
Building Nginx
Troubleshooting
Copying the source code configuration from prebuilt packages
The structure of the Nginx installation
The Nginx configuration folder
The default virtual host folder
The virtual hosts configuration folder
The log folder
The temporary folder
Configuring Nginx
Value types
Variables
Inclusions
Sections
The http section
The server section
The upstream section
The location section
Simple
Exact
Regular expression locations
The if section
The limit_except section
Other section types
Configuration settings' inheritance rules
The First sample configuration
Configuration best practices
Summary
2. Managing Nginx
The Nginx connection processing architecture
Starting and stopping Nginx
Control signals and their usage
Fast shutdown
Graceful shutdown
Reconfiguration
Reopening the log file
Nginx binary upgrade
Graceful worker shutdown
Finalizing the upgrade procedure
Handling difficult cases
Distribution-specific startup scripts
Allocating worker processes
Setting up Nginx to serve static data
Installing SSL certificates
Creating a Certificate Signing Request
Installing an issued SSL certificate
Permanently redirecting from a nonsecure virtual host
Managing temporary files
Communicating issues to developers
Creating a binary with debugging information
Summary
3. Proxying and Caching
Nginx as a reverse proxy
Setting up Nginx as a reverse proxy
Setting the backend the right way
Adding transparency
Handling redirects
Handling cookies
Using SSL
Handling errors
Choosing an outbound IP address
Accelerating downloads
Caching
Configuring caches
Enabling caching
Choosing a cache key
Improving cache efficiency and availability
Handling exceptions and borderline cases
Summary
4. Rewrite Engine and Access Control
The basics of the rewrite engine
More about rewrite rules
Patterns
Captures and positional parameters
Other functionalities of the rewrite engine
Assigning variables
Evaluating predicates using if sections
Replying with a specified HTTP status code
Access control
Restricting access by IP address
Using the geo directive to restrict access by IP address
Using basic authentication for access restriction
Authenticating users with a subrequest
Combining multiple access restriction methods
Summary
5. Managing Inbound and Outbound Traffic
Managing inbound traffic
Limiting the request rate
Limiting the number of simultaneous connections
Limiting the transfer rate of a connection
Applying multiple limitations
Managing outbound traffic
Declaring upstream servers
Using upstream servers
Choosing a request distribution strategy
Configuring backup servers
Determining whether a server is available
Enabling persistent connections
Limiting the transfer rate of an upstream connection
Summary
6. Performance Tuning
Optimizing static file retrieval
Enabling response compression
Optimizing buffer allocation
Enabling SSL session reuse
Worker processes allocation on multi-core systems
Summary
Index
Nginx Essentials
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2015
Production reference: 1170715
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-953-8
www.packtpub.com
Credits
Author
Valery Kholodkov
Reviewers
Markus Jelsma
Jesse Estill Lawson
Daniel Parraz
Commissioning Editor
Dipika Gaonkar
Acquisition Editor
Usha Iyer
Content Development Editor
Nikhil Potdukhe
Technical Editor
Manali Gonsalves
Copy Editor
Roshni Banerjee
Project Coordinator
Vijay Kushlani
Proofreader
Safis Editing
Indexer
Priya Sane
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade
About the Author
Valery K...
Table of contents
- Nginx Essentials