From the course: Learning NGINX

Unlock the full course today

Join today to access over 25,100 courses taught by industry experts.

Inside nginx.conf

Inside nginx.conf - Nginx Tutorial

From the course: Learning NGINX

Inside nginx.conf

- I'm connected to my development server and I've elevated my session to use the root account. I'm currently in the etc nGinx directory. Let's take a closer look at the main nGinx configuration file nGenx.conf. I should start by saying that the need to edit nGinx.conf is very rare. So I open the file I'm using the view command to make sure I don't make any unwanted changes. In this file we find the settings for nGinx listed as simple directives. Most directives will be listed as one directive per line. One example of a simple directive is the user setting on the very first line. This defines the account that the nGinx process will use after it gets started by the root user. Other directives appear as blocks and span multiple lines. These blocks start with a directive and are followed by an open bracket, more directives and then a closing bracket. An example of a block directive is the HTTP block. This is a directive…

Contents