Configuration directives
The Nginx configuration file can be described as a list of directives organized in a logical structure. The entire behavior of the application is defined by the values that you give to those directives.
By default, Nginx makes use of one main configuration file. The path of this file was defined in the steps described in Chapter 1, Downloading and Installing Nginx, under the Build configuration issues section. If you did not edit the configuration file path and prefix options, it should be located at /usr/local/nginx/conf/nginx.conf.
However, if you installed Nginx with a package manager, your configuration file will likely be located in /etc/nginx/folder, and the contents of the file may be quite different from the ...
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.
Read now
Unlock full access