O'Reilly logo

Nginx Module Extension by Usama Dar

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

Chapter 2. Configuring Core Modules

In this chapter we will explore the configuration of the Main and Events modules of Nginx, which are also called the core modules. We will discuss the module-related configuration options and important points that one needs to remember while using these options.

Understanding the Main module

The Nginx Main module consists of the following configuration directives or commands:

Name

Value

Default

Example

daemon

on, off

on

 

master_process

on, off

on

 

timer_resolution

interval

0

100ms

pid

file

logs/nginx.pid

/var/log/nginx.pid

lock_file

file

logs/nginx.lock

/var/log/nginx.lock

worker_processes

number, auto

1

2

debug_points

stop, abort

null

stop

user

user [group]

nobody nobody ...

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

Start Free Trial

No credit card required