Nginx HTTP Server - Third Edition

Harness the power of Nginx to make the most of your infrastructure and serve pages faster than ever

Nginx HTTP Server - Third Edition

This ebook is included in a Mapt subscription
Clément Nedelcu

1 customer reviews
Harness the power of Nginx to make the most of your infrastructure and serve pages faster than ever
$10.00
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781785280337
Paperback318 pages

Book Description

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.

Table of Contents

Chapter 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
Chapter 2: Basic Nginx Configuration
Configuration file syntax
Base module directives
Testing your server
Summary
Chapter 3: HTTP Configuration
The HTTP Core module
Module directives
Module variables
The location block
Summary
Chapter 4: Module Configuration
The Rewrite module
SSI module
Additional modules
Summary
Chapter 5: PHP and Python with Nginx
An introduction to FastCGI
PHP with Nginx
Python and Nginx
Summary
Chapter 6: Apache and Nginx Together
Nginx as reverse proxy
The Nginx proxy module
Configuring Apache and Nginx
Improving the reverse proxy architecture
Summary
Chapter 7: From Apache to Nginx
Nginx versus Apache
Porting your Apache configuration
Rewrite rules
Summary
Chapter 8: Introducing Load Balancing and Optimization
An introduction to load balancing
Using Nginx as a TCP load balancer
Thread pools and I/O mechanisms
Summary

Chapter 9: Case Studies
Deploying a WordPress site
Securing communications with HTTPS
Creating your ownCloud drive
Summary
Chapter 10: Troubleshooting
General tips on troubleshooting
Install issues
The 403 Forbidden custom error page
400 Bad request
Truncated or invalid FastCGI responses
Location block priorities
If block issues
Summary

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

Authors

Table of Contents

Chapter 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
Chapter 2: Basic Nginx Configuration
Configuration file syntax
Base module directives
Testing your server
Summary
Chapter 3: HTTP Configuration
The HTTP Core module
Module directives
Module variables
The location block
Summary
Chapter 4: Module Configuration
The Rewrite module
SSI module
Additional modules
Summary
Chapter 5: PHP and Python with Nginx
An introduction to FastCGI
PHP with Nginx
Python and Nginx
Summary
Chapter 6: Apache and Nginx Together
Nginx as reverse proxy
The Nginx proxy module
Configuring Apache and Nginx
Improving the reverse proxy architecture
Summary
Chapter 7: From Apache to Nginx
Nginx versus Apache
Porting your Apache configuration
Rewrite rules
Summary
Chapter 8: Introducing Load Balancing and Optimization
An introduction to load balancing
Using Nginx as a TCP load balancer
Thread pools and I/O mechanisms
Summary

Chapter 9: Case Studies
Deploying a WordPress site
Securing communications with HTTPS
Creating your ownCloud drive
Summary
Chapter 10: Troubleshooting
General tips on troubleshooting
Install issues
The 403 Forbidden custom error page
400 Bad request
Truncated or invalid FastCGI responses
Location block priorities
If block issues
Summary

Book Details

ISBN 139781785280337
Paperback318 pages
Read More
From 1 reviews

Read More Reviews