Mastering Nginx

Written for experienced systems administrators and engineers, this book teaches you from scratch how to configure Nginx for any situation. Step-by-step instructions and real-world code snippets clarify even the most complex areas.

Mastering Nginx

Dimitri Aivaliotis

1 customer reviews
Written for experienced systems administrators and engineers, this book teaches you from scratch how to configure Nginx for any situation. Step-by-step instructions and real-world code snippets clarify even the most complex areas.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781849517447
Paperback322 pages

Book Description

NGINX is a high-performance HTTP server and mail proxy designed to use very few system resources. With the many tutorials and example configurations floating around the Web, it is difficult to know how to properly configure NGINX to meet your expectations.

"Mastering Nginx" will serve to clarify the murky waters of NGINX configuration, helping you learn how to tune NGINX for various situations, what some of the more obscure configuration directives do, and how to design a decent configuration to match your needs.

Beginning with an overview of compiling NGINX and describing its basic configuration file format, this guide next takes you on a tour of NGINX's modules.

From the unique mail module to the upstream module, this book explores the various possibilities of using NGINX as a reverse proxy. The multiple HTTP modules are explained, and the book rounds off the tour with a discussion of troubleshooting.

"Mastering Nginx" will explain all aspects of configuring NGINX to help solve your hosting problems.

Table of Contents

Chapter 1: Installing NGINX and Third-Party Modules
Installing NGINX using a package manager
Installing NGINX from source
Configuring for web or mail service
Enabling various modules
Finding and installing third-party modules
Putting it all together
Summary
Chapter 2: A Configuration Guide
The basic configuration format
NGINX global configuration parameters
Using include files
The HTTP server section
The virtual server section
Locations – where, when, and how
The mail server section
Full sample configuration
Summary
Chapter 3: Using the Mail Module
Basic proxy service
Authentication service
Combining with memcached
Interpreting log files
Operating system limits
Summary
Chapter 4: NGINX as a Reverse Proxy
Introduction to reverse proxying
Types of upstream servers
Converting an "if"-fy configuration to a more modern interpretation
Using error documents to handle upstream problems
Determining the client's real IP address
Summary
Chapter 5: Reverse Proxy Advanced Topics
Security through separation
Isolating application components for scalability
Reverse proxy performance tuning
Summary
Chapter 6: The NGINX HTTP Server
NGINX's architecture
The HTTP core module
Using limits to prevent abuse
Restricting access
Streaming media files
Predefined variables
Using NGINX with PHP-FPM
Wiring NGINX and uWSGI together
Summary
Chapter 7: NGINX for the Developer
Caching integration
Changing content on-the-fly
Using Server Side Includes
Decision-making in NGINX
Creating a secure link
Generating images
Tracking website visitors
Preventing inadvertent code execution
Summary
Chapter 8: Troubleshooting Techniques
Analyzing log files
Configuring advanced logging
Common configuration errors
Operating system limits
Performance problems
Using the Stub Status module
Summary

What You Will Learn

  • Compile the right third party module to meet your needs
  • Write an authentication server to use with the mail proxy module
  • Create your own SSL certificates to encrypt connections
  • Use try_files to solve your file-existence check problems
  • Cache and compress responses for speedier user-interaction
  • Integrate popular PHP frameworks with the FastCGI module
  • Construct useful logging configurations
  • Troubleshoot configuration problems as they arise

 

Authors

Table of Contents

Chapter 1: Installing NGINX and Third-Party Modules
Installing NGINX using a package manager
Installing NGINX from source
Configuring for web or mail service
Enabling various modules
Finding and installing third-party modules
Putting it all together
Summary
Chapter 2: A Configuration Guide
The basic configuration format
NGINX global configuration parameters
Using include files
The HTTP server section
The virtual server section
Locations – where, when, and how
The mail server section
Full sample configuration
Summary
Chapter 3: Using the Mail Module
Basic proxy service
Authentication service
Combining with memcached
Interpreting log files
Operating system limits
Summary
Chapter 4: NGINX as a Reverse Proxy
Introduction to reverse proxying
Types of upstream servers
Converting an "if"-fy configuration to a more modern interpretation
Using error documents to handle upstream problems
Determining the client's real IP address
Summary
Chapter 5: Reverse Proxy Advanced Topics
Security through separation
Isolating application components for scalability
Reverse proxy performance tuning
Summary
Chapter 6: The NGINX HTTP Server
NGINX's architecture
The HTTP core module
Using limits to prevent abuse
Restricting access
Streaming media files
Predefined variables
Using NGINX with PHP-FPM
Wiring NGINX and uWSGI together
Summary
Chapter 7: NGINX for the Developer
Caching integration
Changing content on-the-fly
Using Server Side Includes
Decision-making in NGINX
Creating a secure link
Generating images
Tracking website visitors
Preventing inadvertent code execution
Summary
Chapter 8: Troubleshooting Techniques
Analyzing log files
Configuring advanced logging
Common configuration errors
Operating system limits
Performance problems
Using the Stub Status module
Summary

Book Details

ISBN 139781849517447
Paperback322 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You