Book description
Harness the power of Nginx to make the most of your infrastructure and serve pages faster than ever
About This Book
- Discover possible interactions between Nginx and Apache to get the best of both worlds
- Learn to exploit the features offered by NGinx for your web applications
- Get the newest techniques available, designed with the latest version in mind
Who This Book Is For
By covering both the early setup stages and advanced topics, this book suits web administrators who interested in solutions to optimize their infrastructure, whether you are looking into replacing your existing web server software or integrating a new tool to cooperate with applications that are already up and running. If you, your visitors, and your operating system have been disappointed by Apache, this book is exactly what you need.
What You Will Learn
- Get to know the basics of the Nginx configuration: syntax, structure, and semantics
- Understand the advanced load balancing functionality of Nginx and the newest innovative IO mechanisms
- Create virtual host configurations effortlessly
- Discover all the first-party modules: how to enable, configure, and use them
- Establish advanced rewrite rules with the Nginx Rewrite module
- Set up Nginx to work with PHP, Python, and more via FastCGI
- Configure Nginx to work as frontend for your existing HTTP server
- Manipulate configuration files with ease and adapt them to various situations
- Discover the common pitfalls and find out how to avoid them
In Detail
Nginx is a lightweight HTTP server designed for high-traffic websites, with network scalability as the primary objective. With the advent of high speed Internet access, short loading times and fast transfer rates have become a necessity. This free, open source solution will either come as a full replacement of other software such as Apache, or stand in front of your existing infrastructure to improve its overall speed.
This book is a detailed guide to setting up Nginx in different ways that correspond to actual production situations: as a standalone server, as a reverse proxy, interacting with applications via FastCGI, and more. In addition, this complete directive reference will be your best friend at all stages of the configuration and maintenance processes.
This book is the perfect companion for both Nginx beginners and experienced administrators. For beginners, it will take you through the complete process of setting up this lightweight HTTP server on your system and configuring its various modules so it does exactly what you need quickly and securely. For more experienced administrators, this book provides different approaches that can help you make the most of your current infrastructure. Nginx can be employed in many situations, whether you are looking to construct an entirely new web-serving architecture or simply want to integrate an efficient tool to optimize your site loading speeds.
Style and approach
This tutorial-style book includes detailed instructions on each of the processes it describes, as well as step-by-step tutorials, commented configuration sections, and in-depth module descriptions, so you can make the most of the performance potential offered by Nginx.
Table of contents
-
Nginx HTTP Server Third Edition
- Table of Contents
- Nginx HTTP Server Third Edition
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
-
1. Downloading and Installing Nginx
- Setting up the prerequisites
- Downloading Nginx
- Configure options
- Controlling the Nginx service
- Adding Nginx as a system service
- NGINX Plus
- Summary
- 2. Basic Nginx Configuration
-
3. HTTP Configuration
- The HTTP Core module
-
Module directives
- Socket and host configuration
- Paths and documents
-
Client requests
- keepalive_requests
- keepalive_timeout
- keepalive_disable
- send_timeout
- client_body_in_file_only
- client_body_in_single_buffer
- client_body_buffer_size
- client_body_temp_path
- client_body_timeout
- client_header_buffer_size
- client_header_timeout
- client_max_body_size
- large_client_header_buffers
- lingering_time
- lingering_timeout
- lingering_close
- ignore_invalid_headers
- chunked_transfer_encoding
- max_ranges
- MIME types
- Limits and restrictions
- File processing and caching
- Other directives
- Module variables
- The location block
- Summary
-
4. Module Configuration
- The Rewrite module
- SSI module
- Additional modules
- Summary
- 5. PHP and Python with Nginx
- 6. Apache and Nginx Together
- 7. From Apache to Nginx
- 8. Introducing Load Balancing and Optimization
- 9. Case Studies
- 10. Troubleshooting
- Index
Product information
- Title: Nginx HTTP Server - Third Edition
- Author(s):
- Release date: November 2015
- Publisher(s): Packt Publishing
- ISBN: 9781785280337
You might also like
book
Mastering NGINX - Second Edition
An in-depth guide to configuring NGINX for your everyday server needs About This Book Get tips, …
book
Nginx Essentials
Excel in Nginx quickly by learning to use its most essential features in real-life applications In …
book
NGINX Cookbook
NGINX is one of the most widely used web servers available today, in part because of …
book
NGINX Cookbook
A practical book on real-world NGINX deployments to get you up and running quickly. About This …