Nginx HTTP Server - Second Edition

Nginx can be an ideal replacement or supplement to Apache. Learn just how straightforward it can be to embrace the Nginx alternative and run a server designed 100% for today's web using this brilliant tutorial.
Preview in Mapt

Nginx HTTP Server - Second Edition

Clément Nedelcu

1 customer reviews
Nginx can be an ideal replacement or supplement to Apache. Learn just how straightforward it can be to embrace the Nginx alternative and run a server designed 100% for today's web using this brilliant tutorial.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$2.70
RRP $26.99
Save 89%
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
$2.70
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Nginx HTTP Server - Second Edition Book Cover
Nginx HTTP Server - Second Edition
$ 26.99
$ 2.70
Nginx HTTP Server - Third Edition Book Cover
Nginx HTTP Server - Third Edition
$ 35.99
$ 25.20
Buy 2 for $20.20
Save $42.78
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781782162322
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.

"Nginx HTTP Server - Second Edition" provides 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, the 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 to get it to do exactly what you need, in a fast and secure way. For more experienced administrators, this book provides different angles of approach 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.

This book takes you through the setup and configuration of Nginx by detailing every step of the way, from downloading to configuring your server in a selection of common architectures.

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
Summary
Chapter 2: Basic Nginx Configuration
Configuration file syntax
Base module directives
A configuration for your profile
Testing your server
Summary
Chapter 3: HTTP Configuration
HTTP Core module
Module directives
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: Apache and Nginx Together
Nginx as reverse proxy
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

What You Will Learn

  • Download and build Nginx from source along with its dependencies
  • The basics of Nginx configuration: syntax, structure, semantics
  • Create virtual host configurations effortlessly
  • Discover all first-party modules and 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 a frontend for your existing HTTP server
  • Learn how to port your Apache rewrite rules through three practical examples
  • Troubleshoot if something goes wrong with the server

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
Summary
Chapter 2: Basic Nginx Configuration
Configuration file syntax
Base module directives
A configuration for your profile
Testing your server
Summary
Chapter 3: HTTP Configuration
HTTP Core module
Module directives
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: Apache and Nginx Together
Nginx as reverse proxy
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

Book Details

ISBN 139781782162322
Paperback318 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
Linux Shell Scripting Cookbook, Second Edition Book Cover
Linux Shell Scripting Cookbook, Second Edition
$ 26.99
$ 5.40
Mastering Object-oriented Python Book Cover
Mastering Object-oriented Python
$ 26.99
$ 18.90
CentOS 6 Linux Server Cookbook Book Cover
CentOS 6 Linux Server Cookbook
$ 29.99
$ 21.00