O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

NGINX Unit Cookbook

Book Description

In addition to its popular web server, NGINX now provides a dynamic application server that supports a RESTful JSON API. The open source NGINX Unit server deploys configuration changes without service disruptions and runs apps built with multiple languages and frameworks. With this handy cookbook, developers, DevOps personnel, network admins, and cloud infrastructure pros will learn how to quickly get started with this new server.

Hands-on recipes demonstrate NGINX Unit’s new approach and describe how to deploy and configure the server for different applications. You’ll learn how the comprehensive RESTful API simplifies configuration, how to run applications written in different languages on the same server, and how to use NGINX Unit as the foundation for your service mesh.

Recipes in this ebook will help you:

  • Install NGINX Unit using source code, Red Hat- and Debian-based systems, or third-party repositories
  • Configure the server using application, router, and listener objects
  • Explore NGINX Unit usage and operations, including application restart and upgrades
  • Learn how the server provides security through application isolation, Unix user permissions, and API encryption
  • Integrate NGINX Unit with the WordPress content management system and the Django and Express.js web application frameworks

Table of Contents

  1. 1. Unit Introduction and Features
    1. Introduction
    2. Application Landscape and Unit Project History
    3. Dynamic Application Server
    4. Polyglotism
    5. API-Driven Configuration and Server Management
  2. 2. Installation
    1. Introduction
    2. Red Hat–Based Systems (.rpm)
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    3. Debian-Based Systems (.deb)
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    4. Third-Party Repositories
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    5. Installing from Source
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
  3. 3. Configuration
    1. Introduction
    2. Application Object
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    3. Listener Object
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    4. Route Object
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
  4. 4. Usage and Operations
    1. Introduction
    2. Startup and Shutdown
      1. Problem
      2. Solution
      3. Discussion
    3. Applying Configuration
      1. Problem
      2. Solution
      3. Discussion
  5. 5. Security
    1. Introduction
    2. Application Isolation
      1. Problem
      2. Solution
      3. Discussion
    3. Unix User Permissions
      1. Problem
      2. Solution
      3. Discussion
    4. API Security Through Encryption
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
  6. 6. Application Integration
    1. Introduction
    2. WordPress
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    3. Django
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    4. Express
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
  7. 7. Ecosystem Integration
    1. Introduction
    2. Reverse Proxying to Unit Applications Through NGINX
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    3. Securely Serving the NGINX Unit Control API
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    4. Containerized Environment
      1. Problem
      2. Solution
      3. Discussion
      4. Additional Resources
    5. Deployments
      1. Problem
      2. Solution
      3. Discussion