Important Nginx paths

There are a few important Nginx paths we need to know about to work with the proxy server. In Nginx, we can host multiple sites (www.example1.com, www.exampl2.com, and so on) at the same time. Take a look at the following table:

Type Path Description
Configuration /etc/nginx/nginx.con This is the base Nginx configuration file. It can be used as the default file.
Configuration /etc/nginx/sites-available/ If we have multiple sites running within Nginx, we can have multiple configuration files.
Configuration /etc/nginx/sites-enabled/ These are the sites activated currently on Nginx.
Log /var/log/nginx/access.log This log file records the server activity, such as timestamp and API endpoints. 
Log /var/log/nginx/error.log This log file logs all proxy server-related errors, such as disk space, file system permissions, and so on.
These paths are in the Linux operating system. For macOS X, use /usr/local/nginx as the base path.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.168.214