NGINX Unit Cookbook: Recipes for Using a Versatile Open Source Server

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Alongside its popular web server, NGINX provides a dynamic application server that supports configuration through 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. This updated cookbook shows developers, DevOps personnel, network admins, and cloud infrastructure pros how to quickly get started with NGINX Unit. Hands-on recipes demonstrate Unit’s new approach and show you how to deploy and configure this server for different applications. You’ll learn how to run applications written in different languages on the same server, how to use NGINX Unit as the foundation for your web application development environment, and how Unit’s RESTful API simplifies configuration. • Learn how Unit differs from other middleware application servers • Install Unit using source code, Red Hat and Debian systems, or third-party repositories • Configure Unit using application, router, and listener objects • Start and stop the Unit server and the applications it runs • Manage user permissions, Linux namespace isolation, and API security • Run WordPress, Django, and other web applications with Unit • Serve applications with an NGINX proxy or load balancer

Author(s): Derek DeJonghe
Edition: 1
Publisher: O'Reilly Media
Year: 2020

Language: English
Commentary: Vector PDF
Pages: 70
City: Sebastopol, CA
Tags: Security; Ruby; Web Applications; Cookbook; Flask; WordPress; Django; Express; NGINX Unit

Cover
Copyright
Table of Contents
Preface
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments
Chapter 1. Unit Introduction and Features
1.1 Application Landscape and Unit Project History
1.2 Dynamic Web Application Server
1.3 Polyglotism
1.4 API-Driven Configuration and Server Management
1.5 Conclusion
Chapter 2. Installation
2.1 Red Hat–Based Systems (.rpm)
Problem
Solution
Discussion
Additional Resources
2.2 Debian-Based Systems (.deb)
Problem
Solution
Discussion
Additional Resources
2.3 Go and NPM
Problem
Solution
Discussion
2.4 Third-Party Repositories
Problem
Solution
Discussion
Additional Resources
2.5 Installing from Source
Problem
Solution
Discussion
Additional Resources
Chapter 3. Configuration
3.1 Application Object
Problem
Solution
Discussion
Additional Resource
3.2 Listener Object
Problem
Solution
Discussion
Additional Resource
3.3 Route Object
Problem
Solution
Discussion
Additional Resources
3.4 Proxying
Problem
Solution
Discussion
Additional Resources
3.5 Static Files
Problem
Solution
Discussion
Additional Resources
3.6 Upstreams/Load Balancing
Problem
Solution
Discussion
Additional Resources
3.7 Targets
Problem
Solution
Discussion
Chapter 4. Usage and Operations
4.1 Startup and Shutdown
Problem
Solution
Discussion
4.2 Applying Configuration
Problem
Solution
Discussion
4.3 Limits
Problem
Solution
Discussion
Chapter 5. Security
5.1 Unix User Permissions
Problem
Solution
Discussion
5.2 Linux Namespace Isolation
Problem
Solution
Discussion
Additional Resources
5.3 API Security Through Encryption
Problem
Solution
Discussion
Additional Resources
Chapter 6. Application Integration
6.1 WordPress
Problem
Solution
Discussion
Additional Resources
6.2 Django
Problem
Solution
Discussion
Additional Resources
6.3 Flask
Problem
Solution
Discussion
Additional Resources
6.4 Express
Problem
Solution
Discussion
Additional Resources
6.5 Ruby
Problem
Solution
Discussion
Additional Resources
Chapter 7. Ecosystem Integration
7.1 Reverse Proxying to Unit Applications Through NGINX
Problem
Solution
Discussion
Additional Resources
7.2 Securely Serving the NGINX Unit Control API
Problem
Solution
Discussion
Additional Resources
7.3 Containerized Environment
Problem
Solution
Discussion
Additional Resources
7.4 Deployments
Problem
Solution
Discussion
Conclusion
Index
About the Author