Chapter 3. HTTP Configuration

At this stage, we have a working Nginx setup. Not only is it installed on the system and launched automatically on startup, but it's also organized and optimized with the help of basic directives. It's now time to go one step further into the configuration and discover the HTTP Core module. This module constitutes the essential component of the HTTP configuration—it allows you to set up websites to be served, also referred to as virtual hosts.

This chapter will cover the following topics:

  • An introduction to the HTTP Core module
  • The http / server / location structure
  • HTTP Core module directives, organized thematically
  • HTTP Core module variables
  • The in-depths of the location block

The HTTP Core module

The HTTP Core module is ...

Get Nginx HTTP Server - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.