Nginx HTTP Server - Fourth Edition

Make the most of your infrastructure and serve pages faster than ever with Nginx
Preview in Mapt
Code Files

Nginx HTTP Server - Fourth Edition

Martin Fjordvald, Clement Nedelcu

Make the most of your infrastructure and serve pages faster than ever with Nginx
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Nginx HTTP Server - Fourth Edition Book Cover
Nginx HTTP Server - Fourth Edition
$ 35.99
$ 25.20
Wireshark Revealed: Essential Skills for IT Professionals Book Cover
Wireshark Revealed: Essential Skills for IT Professionals
$ 79.99
$ 56.00
Buy 2 for $35.00
Save $80.98
Add to Cart

Book Details

ISBN 139781788623551
Paperback348 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 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.

Table of Contents

Chapter 1: 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
Chapter 2: Basic Nginx Configuration
Configuration file syntax
Base module directives
Testing your server
Summary
Chapter 3: HTTP Configuration
HTTP core module
Module directives
Using HTTP/2
Module variables
The location block
Summary
Chapter 4: Module Configuration
Rewrite module
SSI module
Additional modules
Summary
Chapter 5: PHP and Python with Nginx
Introduction to FastCGI
PHP with Nginx
Python and Nginx
Summary
Chapter 6: Nginx as an Application Server
The reverse proxy mechanism
Nginx proxy module
Nginx and microservices
nginScript
Nginx Unit
Summary
Chapter 7: Apache and Nginx Together
How Nginx and Apache benefit from each other
Configuring Apache and Nginx
Improving the reverse proxy architecture
Summary
Chapter 8: From Apache to Nginx
Nginx versus Apache
Porting your Apache configuration
Rewrite rules
Summary
Chapter 9: Introduction to Load Balancing and Optimization
Introduction to load balancing
Using Nginx as a TCP load balancer
Thread pools and IO mechanisms
Summary
Chapter 10: Case Studies
Deploying a WordPress site
Securing communications with HTTPS
Creating your ownCloud drive
Summary
Chapter 11: Troubleshooting
General tips on Nginx troubleshooting
Installing a log parser
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

  • 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

Authors

Table of Contents

Chapter 1: 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
Chapter 2: Basic Nginx Configuration
Configuration file syntax
Base module directives
Testing your server
Summary
Chapter 3: HTTP Configuration
HTTP core module
Module directives
Using HTTP/2
Module variables
The location block
Summary
Chapter 4: Module Configuration
Rewrite module
SSI module
Additional modules
Summary
Chapter 5: PHP and Python with Nginx
Introduction to FastCGI
PHP with Nginx
Python and Nginx
Summary
Chapter 6: Nginx as an Application Server
The reverse proxy mechanism
Nginx proxy module
Nginx and microservices
nginScript
Nginx Unit
Summary
Chapter 7: Apache and Nginx Together
How Nginx and Apache benefit from each other
Configuring Apache and Nginx
Improving the reverse proxy architecture
Summary
Chapter 8: From Apache to Nginx
Nginx versus Apache
Porting your Apache configuration
Rewrite rules
Summary
Chapter 9: Introduction to Load Balancing and Optimization
Introduction to load balancing
Using Nginx as a TCP load balancer
Thread pools and IO mechanisms
Summary
Chapter 10: Case Studies
Deploying a WordPress site
Securing communications with HTTPS
Creating your ownCloud drive
Summary
Chapter 11: Troubleshooting
General tips on Nginx troubleshooting
Installing a log parser
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 139781788623551
Paperback348 pages
Read More

Read More Reviews

Recommended for You

Wireshark Revealed: Essential Skills for IT Professionals Book Cover
Wireshark Revealed: Essential Skills for IT Professionals
$ 79.99
$ 56.00
Django RESTful Web Services Book Cover
Django RESTful Web Services
$ 31.99
$ 22.40
Security with Go Book Cover
Security with Go
$ 31.99
$ 22.40
Mastering Go Book Cover
Mastering Go
$ 39.99
$ 28.00
Metasploit Revealed: Secrets of the Expert Pentester Book Cover
Metasploit Revealed: Secrets of the Expert Pentester
$ 71.99
$ 50.40
Python: Advanced Predictive Analytics Book Cover
Python: Advanced Predictive Analytics
$ 79.99
$ 56.00