Outputnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successfulIf no errors were found and you’d like to apply your changes immediately, restart the service:. sudo systemctl restart nginxImportant Nginx Files and DirectoriesAs you spend time working with Nginx, you may find yourself frequently accessing the following files and directories: Content.
![Nginx Nginx](/uploads/1/2/5/5/125538490/538302718.png)
/var/www/html: This is the location of the default document root from which the actual web content is served. The document root can be changed by altering Nginx configuration files.Server Configuration.
![Nginx Nginx](/uploads/1/2/5/5/125538490/737412026.png)
/etc/nginx/: The default Nginx configuration directory where all your Nginx config files can be found. /etc/nginx/nginx.conf: The primary Nginx configuration file. This can be directed to make global changes to Nginx’s configuration. /etc/nginx/sites-available/default: Nginx’s default server block file. Other per-site server blocks are also stored within the sites-available directory, although these will not be used unless they are linked to in the sites-enabled directory. /etc/nginx/sites-enabled/: The directory where enabled per-site “server blocks” are stored.
When you make a change to the nginx config via the different means, the server should be auto reloaded to apply the settings, or at-least have a module option to allow that.
Hi Roman, thanks for your reply - with proxycachebackgroundupdate is OFF, the correct testfile 'test.js'is requested: 'GET /test.js HTTP/1.0' 200 199503 '-' 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36' With proxycachebackgroundupdate is ON, the only '/' is requested: 'GET / HTTP/1.0' 200 32287 '-' 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36' Seems there is something wrong:/What nginx version do you have? Please update to the lastest version.We made some fixes in the behavior of background update since it was released.If it does not help, please provide more complete config (the part you sentearlier does not even have proxypass).-Roman Arutyunyannginx mailing list.