Conversation
Edited 1 month ago

Has anyone encountered this problem? Laravel installed on Plesk — the whole setup behaves strangely when serving static files:

  1. File exists dir/dir1/file.txt → nginx returns 404

  2. File exists dir/dir2/file.js → the file is served correctly

  3. 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?

#lang_en #dev #plesk #laravel

1
1
0

@oreolek completely empty.

0
0
0

@oreolek it throws Nginx errors, but the logs shown Apache access errors. Apache is disabled in the settings, so in theory everything should be served through Nginx.

0
0
0

@chicory my bet is on the filetype, I think the ngnix tries to setve txt and js differently

1
0
0

@chicory try to copy the same js file to the first dir to test it or the txt file to the second dir.

0
0
0