Nginx Module Extension
暫譯: Nginx 模組擴展

Usama Dar

  • 出版商: Packt Publishing
  • 出版日期: 2013-12-28
  • 售價: $1,540
  • 貴賓價: 9.5$1,463
  • 語言: 英文
  • 頁數: 128
  • 裝訂: Paperback
  • ISBN: 1782163042
  • ISBN-13: 9781782163046
  • 海外代購書籍(需單獨結帳)

商品描述

Customize and regulate the robust Nginx web server, and write your own Nginx modules efficiently

Overview

  • Install Nginx from its source on multiple platforms
  • Become acquainted with core Nginx modules and their configuration options
  • Explore optional and third party module extensions along with configuration directives

In Detail

Companies can solve significant scaling issues thanks to switching their web platforms to Nginx. A popular web server for building web infrastructure, Nginx transparently and effectively enables the growth of the largest sites on the Internet today, on top of being free and open source.

This book is a practical reference providing you with everything you need to know about Nginx module extensions. You will learn how to write powerful and flexible configuration files and your own modules, as well as gaining knowledge about Nginx's modular architecture, available modules, and their intricate details.

Nginx Module Extension starts by teaching you to compile the Nginx source on multiple platforms. Then you will learn the synopsis, directives, and practical examples of the core, optional, and third party Nginx modules before familiarizing yourself with Nginx internals, enabling you to write custom modules.

You will learn about the flexibility of the Nginx configuration and how to enable and disable various options while building from the source. You will learn to customize the Main and Events module to fine-tune the web server performance, and you will also learn about standard and optional HTTP modules like GeoIP, Gzip, Access Control, and using SSL, along with an exploration of PostgreSQL, MySQL, and Memcached modules. Finally you will learn internals like module chaining and will see sample code and a line-by-line walkthrough demonstrating how to write your own module.

What you will learn from this book

  • Install Nginx from its source on various platforms with instructions on various platform specific options
  • Configure error logging, processes, and permissions
  • Learn how Nginx handles events and how to configure epoll, kqueue, select, and poll
  • Utilize standard and optional HTTP modules, and combine many of these modules to achieve various system admin tasks
  • Acquaint yourself with available third party Nginx modules
  • Employ LUA as a programming language to write Nginx configuration files
  • Familiarize yourself with modules like PostgreSQL and Memcached and learn how to optimally configure them
  • Understand the internals on Nginx and write your own modules
  • Gain knowledge about core Nginx concepts like module chaining and also different types of modules like handlers, filters, and load balancers

Approach

This book is a step-by-step, example-oriented tutorial that will teach you to implement Nginx modules, as well as how to extend Nginx with core and third party modules.

Who this book is written for

Nginx Module Extension is intended for advanced users, system administrators, and developers of Nginx modules. You need to have prior experience with using Nginx as a web server and basic Nginx configuration changes. You also need basic understanding of GNU tools like configure and make, in order to be able to compile the source code. Proficiency in C programming and advanced operating system knowledge on Linux kernel, for example, would also come in handy.

商品描述(中文翻譯)

自訂和調整強大的 Nginx 網頁伺服器,並有效地編寫自己的 Nginx 模組

概述
- 在多個平台上從源碼安裝 Nginx
- 熟悉核心 Nginx 模組及其配置選項
- 探索可選和第三方模組擴展及其配置指令

詳細內容
公司可以透過將其網頁平台切換到 Nginx 來解決重大擴展問題。Nginx 是一個流行的網頁伺服器,用於構建網頁基礎設施,能夠透明且有效地支持當今互聯網上最大的網站的增長,並且是免費和開源的。

本書是一本實用的參考資料,提供您有關 Nginx 模組擴展所需的所有知識。您將學習如何編寫強大且靈活的配置文件和自己的模組,並獲得有關 Nginx 模組化架構、可用模組及其複雜細節的知識。

Nginx 模組擴展首先教您如何在多個平台上編譯 Nginx 源碼。然後,您將學習核心、可選和第三方 Nginx 模組的概要、指令和實用範例,接著熟悉 Nginx 的內部結構,使您能夠編寫自定義模組。

您將了解 Nginx 配置的靈活性,以及如何在從源碼構建時啟用和禁用各種選項。您將學會自訂 Main 和 Events 模組,以微調網頁伺服器的性能,還將學習標準和可選的 HTTP 模組,如 GeoIP、Gzip、存取控制,以及使用 SSL,並探索 PostgreSQL、MySQL 和 Memcached 模組。最後,您將學習模組鏈接等內部知識,並查看示範代碼和逐行講解,展示如何編寫自己的模組。

您將從本書中學到的內容
- 在各種平台上從源碼安裝 Nginx,並提供各平台特定選項的指導
- 配置錯誤日誌、進程和權限
- 了解 Nginx 如何處理事件,以及如何配置 epoll、kqueue、select 和 poll
- 利用標準和可選的 HTTP 模組,並結合這些模組來完成各種系統管理任務
- 熟悉可用的第三方 Nginx 模組
- 使用 LUA 作為編程語言來編寫 Nginx 配置文件
- 熟悉 PostgreSQL 和 Memcached 等模組,並學習如何最佳配置它們
- 了解 Nginx 的內部結構並編寫自己的模組
- 獲得有關核心 Nginx 概念的知識,如模組鏈接,以及不同類型的模組,如處理器、過濾器和負載平衡器

方法
本書是一個逐步的、以範例為導向的教程,將教您如何實現 Nginx 模組,以及如何使用核心和第三方模組擴展 Nginx。

本書的讀者對象
Nginx 模組擴展適合進階用戶、系統管理員和 Nginx 模組的開發者。您需要具備使用 Nginx 作為網頁伺服器的經驗以及基本的 Nginx 配置變更知識。您還需要對 GNU 工具(如 configure 和 make)有基本了解,以便能夠編譯源代碼。熟練掌握 C 語言編程和對 Linux 核心的高級操作系統知識將會非常有幫助。