Thanks. Turning off sendfile worked, but a small test program in C on the
same filesystem doesn't yield this behavior.
What else could I test to reproduce this and confirm OS or filesystem
issues?
Thanks for your time and ideas.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,276676,27
nginx/1.12.1
Creating new files with PHP (image resizing) works fine, the new files are
served well. Then suddenly after a couple of days the file is returned as a
sequence of NULL bytes Content-Length long.
HTTP/1.1 200 OK
Server: nginx/1.12.1
Date: Wed, 04 Oct 2017 11:33:57 GMT
Content-Type: im