Nginx HTTP Server

Adopt Nginx for your web applications to make the most of your infrastructure and serve pages faster than ever
Preview in Mapt
Code Files

Nginx HTTP Server

Clément Nedelcu

Adopt Nginx for your web applications to make the most of your infrastructure and serve pages faster than ever
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.99 p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Nginx HTTP Server Book Cover
Nginx HTTP Server
$ 26.99
$ 2.70
SQL Server 2017 Administrators Guide Book Cover
SQL Server 2017 Administrators Guide
$ 47.99
$ 10.00
Buy 2 for $12.70
Save $62.28
Add to Cart

Book Details

ISBN 139781849510868
Paperback348 pages

Book Description

Nginx is a lightweight HTTP server designed for high-traffic websites, with network scalability as 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 serve as full replacement of other software such as Apache, or stand in front of your existing infrastructure to improve its overall speed. However, migrating to Nginx requires some guidance.

This book serves as a detailed guide to setting up Nginx in different production situations: as standalone server, as 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 the former, 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 the latter, it provides different angles of approach that can help you make the most of your current infrastructure. As the book progresses, it provides a complete reference to all the modules and directives of Nginx. It will explain how to replace your existing server with Nginx or configure Nginx to work as a frontend for your existing server.

By the end of this book, you will be geared up to implement Nginx as a web server that will boost the speed of all your web applications.

Table of Contents

Chapter 1: Preparing your Work Environment
Setting up a terminal emulator
Basic shell commands
Discovering the Linux filesystem
System administration tools
Summary
Chapter 2: Downloading and Installing Nginx
Setting up the prerequisites
Downloading Nginx
Configure options
Controlling the Nginx service
Adding Nginx as a system service
Summary
Chapter 3: Basic Nginx Configuration
Configuration file syntax
Base module directives
A configuration for your profile
Testing your server
Summary
Chapter 4: HTTP Configuration
HTTP Core module
Module directives
Module variables
The Location block
Summary
Chapter 5: Module Configuration
Rewrite module
SSI module
Additional modules
Summary
Chapter 6: PHP and Python with Nginx
Introduction to FastCGI
PHP with Nginx
Python and Nginx
Summary
Chapter 7: Apache and Nginx Together
Nginx as reverse proxy
Nginx Proxy module
Configuring Apache and Nginx
Additional steps
Summary
Chapter 8: 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
  • Learn the basics of Nginx configuration: syntax, structure, and semantics
  • Create virtual host configurations effortlessly
  • Discover how to enable, configure, and use all first-party modules
  • 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
  • Complete the process of replacing Apache by Nginx
  • Follow three practical examples on how to port your Apache rewrite rules
  • Find your way through the configuration with the complete detailed directive reference
  • Troubleshooting: know where to start looking if something goes wrong

Authors

Table of Contents

Chapter 1: Preparing your Work Environment
Setting up a terminal emulator
Basic shell commands
Discovering the Linux filesystem
System administration tools
Summary
Chapter 2: Downloading and Installing Nginx
Setting up the prerequisites
Downloading Nginx
Configure options
Controlling the Nginx service
Adding Nginx as a system service
Summary
Chapter 3: Basic Nginx Configuration
Configuration file syntax
Base module directives
A configuration for your profile
Testing your server
Summary
Chapter 4: HTTP Configuration
HTTP Core module
Module directives
Module variables
The Location block
Summary
Chapter 5: Module Configuration
Rewrite module
SSI module
Additional modules
Summary
Chapter 6: PHP and Python with Nginx
Introduction to FastCGI
PHP with Nginx
Python and Nginx
Summary
Chapter 7: Apache and Nginx Together
Nginx as reverse proxy
Nginx Proxy module
Configuring Apache and Nginx
Additional steps
Summary
Chapter 8: From Apache to Nginx
Nginx versus Apache
Porting your Apache configuration
Rewrite rules
Summary

Book Details

ISBN 139781849510868
Paperback348 pages
Read More

Read More Reviews

Recommended for You

Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
pfSense 2 Cookbook Book Cover
pfSense 2 Cookbook
$ 26.99
$ 10.00
Nagios Core Administration Cookbook Book Cover
Nagios Core Administration Cookbook
$ 29.99
$ 10.00
Designing Next Generation Web Projects with CSS3 Book Cover
Designing Next Generation Web Projects with CSS3
$ 26.99
$ 10.00
LiveCode Mobile Development HOTSHOT Book Cover
LiveCode Mobile Development HOTSHOT
$ 26.99
$ 10.00
SAP ABAP Advanced Cookbook Book Cover
SAP ABAP Advanced Cookbook
$ 29.99
$ 10.00