Core event directives

use (Core event directives)

Selects the event mechanism in events; automatic selection is normally appropriate.

Formal Syntax & Structure

nginx syntaxnginx
use method;

Parameters & Attributes

NameTypeDescription
methodevent backend nameChoose a compiled, platform-supported mechanism such as epoll on Linux. Automatic selection is normally preferable.

Working Example

Example Snippetnginx
events { use epoll; }
Nginx Reference