The Nginx proxy module

Similarly to the previous chapter, the first step towards establishing the new architecture will be to discover the appropriate module. The default Nginx build comes with the proxy module, which allows forwarding of HTTP requests from the client to a backend server. We will be configuring multiple aspects of the module:

  • Basic address and port information of the backend server
  • Caching, buffering, and temporary file options
  • Limits, timeout, and error behavior
  • Other miscellaneous options

All these options are available via directives, which we will learn to configure throughout this section.

Main directives

The first set of directives will allow you to establish the basic configuration, such as the location of the backend server, ...

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.