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 - 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
-
-
-
Your NGINX learning environment20s
-
(Locked)
Install NGINX on Ubuntu2m 58s
-
(Locked)
The NGINX command-line interface3m 58s
-
(Locked)
NGINX files and directories3m 39s
-
(Locked)
Inside nginx.conf3m 39s
-
(Locked)
Configure a virtual host, part 14m 44s
-
(Locked)
Configure a virtual host, part 23m 16s
-
(Locked)
Add files to the root directory2m 14s
-
(Locked)
Challenge: Set up an NGINX server on Ubuntu Linux1m 24s
-
(Locked)
Solution: Set up an NGINX server on Ubuntu Linux3m 14s
-
-
-
-
-
-