An in-depth guide to configuring NGINX for your everyday server needs
About This Book
Get tips, tricks, and master insight to help you configure NGINX for any server situation
Integrate NGINX into your applications architecture with is, using hands-on guidance and practical code samples that are free to use
Troubleshoot configuration problems before and as they arise, for a seamless NGINX server experience
Who This Book Is For
This book is for system administrators and engineers who want to personalize NGINX, and design a robust configuration module to solve their hosting problems. Some knowledge of NGINX is a plus, but is not a prerequisite.
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 to get speedier user interaction
Integrate popular PHP frameworks with the FastCGI module
Construct useful logging configurations
NGINX is a high-performance HTTP server and mail proxy designed to use very few system resources. But despite its power it is often a challenge to properly configure NGINX to meet your expectations. Mastering Nginx is the solution – an insider’s guide that will clarify the murky waters of NGINX’s configuration. Tune NGINX for various situations, improve your NGINX experience with some of the more obscure configuration directives, and discover how to design and personalize a configuration to match your needs.
To begin with, quickly brush up on installing and setting up the NGINX server on the OS and its integration with third-party modules. From here, move on to explain NGINX's mail proxy module and its authentication, and reverse proxy to solve scaling issues. Then see how to integrate NGINX with your applications to perform tasks.
The latter part of the book focuses on working through techniques to solve common web issues and the know-hows using NGINX modules. Finally, we will also explore different configurations that will help you troubleshoot NGINX server and assist with performance tuning.
Style and approach
This is a mastering guide where you will follow an instructional, conversational approach working through problems and their solutions.
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.