Has anyone encountered this problem? Laravel installed on Plesk — the whole setup behaves strangely when serving static files:
File exists dir/dir1/file.txt → nginx returns 404
File exists dir/dir2/file.js → the file is served correctly
File does not exist → Laravel returns 404
File permissions are fine. If I run sudo -u nginx cat dir/dir1/file.txt, it reads the file without problems.
Any ideas?
@chicory my bet is on the filetype, I think the ngnix tries to setve txt and js differently
@chicory try to copy the same js file to the first dir to test it or the txt file to the second dir.