Book description
Make the most of your infrastructure and serve pages faster than ever with Nginx.
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 your hands on the most updated version of Nginx (1.13.2) to support all your web administration requirements
Who This Book Is For
This book is a perfect match to web administrators who are 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, this book is your ideal resource.
What You Will Learn
- Download and install Nginx on your system
- Prepare a basic configuration and test your initial setup
- Discover the core functionality of the HTTP module
- Make the most of first- and third-party Nginx modules
- Set up Nginx to work with PHP, Python, and other applications
- Learn how to set up Nginx to work with Apache
- Fully replace Apache with Nginx
- Optimize your architecture with threads or load balancing
- Identify errors in configuration and learn basic troubleshooting techniques
- Consult the exhaustive directive and module index for reference
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 book is a detailed guide to setting up Nginx in 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 direct reference will be indispensable at all stages of the configuration and maintenance processes. This book mainly targets the most recent version of Nginx (1.13.2) and focuses on all the new additions and improvements, such as support for HTTP/2, improved dynamic modules, security enhancements, and support for multiple SSL certificates. 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 that 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 book aims to serve as a handy reference of all Nginx first-party modules and directives, allowing the reader to develop their own web configuration more efficiently.
Publisher resources
Table of contents
- Preface
-
Downloading and Installing Nginx
- Installing via package managers
- Compiling from source
- Downloading Nginx
- Configure options
- Controlling the Nginx service
- Adding Nginx as a system service
- Nginx Plus
- Summary
- Basic Nginx Configuration
-
HTTP Configuration
- 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
- Using HTTP/2
- Module variables
- The location block
- Summary
-
Module Configuration
- Rewrite module
- SSI module
- Additional modules
- Summary
- PHP and Python with Nginx
- Nginx as an Application Server
- Apache and Nginx Together
- From Apache to Nginx
- Introduction to Load Balancing and Optimization
- Case Studies
- Troubleshooting
- Other Books You May Enjoy
Product information
- Title: Nginx HTTP Server - Fourth Edition
- Author(s):
- Release date: February 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788623551
You might also like
book
Nginx Essentials
Excel in Nginx quickly by learning to use its most essential features in real-life applications In …
book
Nginx: From Beginner to Pro
Teaches you to start up Nginx and quickly take your expertise to a level where you …
book
NGINX Cookbook, 2nd Edition
NGINX is one of the most widely used web servers available today, in part because of …
book
NGINX Cookbook
NGINX is one of the most widely used web servers available today, in part because of …