S
S
SteeLucky2017-11-04 18:48:31
Nginx
SteeLucky, 2017-11-04 18:48:31

Nginx not seeing file changes?

Hello everyone, such a problem .. Windows is used as the main OS, the guest OS is CentOS 7, I use VirtualBox. CentOS has nginx, to work with the necessary directories in nginx ("/etc/nginx" and "/usr/share/nginx") I created shared folders in VirtualBox and mounted, i.e. it turned out that these directories "/etc/nginx", "/usr/share/nginx" are mounted, the files themselves are stored in a convenient place in Windows. I made it so that I can work with files in a familiar text editor on the main OS.
The problem itself: I launch nginx in CentOS, load the page in the browser already in the main OS, see the desired text, then change the contents of the main index.html file to something else in Windows, save and reload the page and see the same thing, i.e. for some reason, nginx does not see any saves in the file, but displays the old text.
The most interesting thing is that using the "vi" editor in CentOS I see changes in the file, and even more interesting is that when I just save the modified file using Windows simply through "vi", then nginx immediately sees all the changes. It is unlikely that something is cached, I tried to log in from different browsers, delete the cache in browsers, looked at the folders in which, in theory, files in nginx should be saved - EMPTY.
Apparently I'm doing something wrong.
I would be very grateful for the help, I want to really start practicing after reading the theory about nginx, but here is such a problem ... Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
danforth, 2017-11-04
@SteeLucky

In the nginx config filesendfile off;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question