Looking at some general tips on NGINX troubleshooting
Before we begin, whenever you run into some kind of problem with NGINX, you should make sure to follow the recommendations given in the following sections, as they are generally a good source of solutions.
Checking access permissions
A lot of errors that NGINX administrators are faced with are caused by invalid access permissions. On two separate occasions, you have the option to specify a user and group for the NGINX worker processes to run:
- When configuring the build with the
configure
command, you are allowed to specify a user and group that will be used by default (refer to Chapter 1). - In the configuration file, the
user
directive allows you to specify a user and group. This directive overrides the value that you may have defined during theconfigure
step.
If NGINX is supposed to access files that do not have the correct permissions, in other words, that cannot be read (and by extension, cannot be written...