Each location can proxy the request or return a file. NGINX Plus provides full control over this process.
Each location defines its own scenario of what happens to requests that are mapped to this location. For more information about configuration files, see Creating NGINX Plus Configuration Files.Įach virtual server for HTTP traffic defines special configuration instances called locations that control processing of specific sets of URIs. At a lower level, the configuration defines a set of virtual servers that control the processing of requests for particular domains or IP addresses. For ease of reading, the remainder of the article refers to NGINX Plus only.Īt a high level, configuring NGINX Plus as a web server is a matter of defining which URLs it handles and how it processes HTTP requests for resources at those URLs. Note: The information in this article applies to both NGINX Open Source and NGINX Plus. This article explains how to configure NGINX Open Source and NGINX Plus as a web server, and includes the following sections:įor additional information on how to tune NGINX Plus and NGINX Open Source, watch our free webinar on-demand Installing and Tuning NGINX. Configuring NGINX and NGINX Plus as a Web ServerĬonfigure NGINX and NGINX Plus as a web server, with support for virtual server multi-tenancy, URI and response rewriting, variables, and error handling.