Skip to Content
Mastering NGINX - Second Edition
book

Mastering NGINX - Second Edition

by Dimitri Aivaliotis
July 2016
Beginner
320 pages
6h 32m
English
Packt Publishing
Content preview from Mastering NGINX - Second Edition

The HTTP core module

The http module is NGINX's central module; it handles all interactions with clients over HTTP. We already discussed the following aspects of this module in Chapter 2, A Configuration Guide:

  • Client directives
  • File I/O directives
  • Hash directives
  • Socket directives
  • The listen directive
  • Matching a request to a server_name and location directive

We will have a look at the remaining directives in the rest of this section, again divided by type.

The server directive

The server directive starts a new context. We have already seen examples of its usage throughout the book so far. One aspect that has not yet been examined in-depth is the concept of a default server.

A default server in NGINX means that it is the first server defined in a particular ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Nginx Essentials

Nginx Essentials

Valery Kholodkov, Valery I Kholodkov
NGINX Cookbook

NGINX Cookbook

Tim Butler
NGINX Cookbook

NGINX Cookbook

Derek DeJonghe
NGINX Cookbook

NGINX Cookbook

Derek DeJonghe

Publisher Resources

ISBN: 9781782173311