PacktLib: Mastering Nginx

Mastering NGINX

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

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

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

Using the Mail Module

Basic proxy service

Authentication service

Combining with memcached

Interpreting log files

Operating system limits

Summary

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

Reverse Proxy Advanced Topics

Security through separation

Isolating application components for scalability

Reverse proxy performance tuning

Summary

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

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

Troubleshooting Techniques

Analyzing log files

Configuring advanced logging

Common configuration errors

Operating system limits

Performance problems

Using the Stub Status module

Summary

Directive Reference

Directive Reference

Rewrite Rule Guide

Rewrite Rule Guide

Rewrite Rule Guide

Rewrite Rule Guide

Rewrite Rule Guide

The NGINX Community

The NGINX Community

The NGINX Community

The NGINX Community

The NGINX Community

The NGINX Community

Persisting Solaris Network Tunings

Index