Symptoms
-
When accessing static files (JS, images CSS) contained in a Protected directory or its subdirectories in Plesk, the following error is shown:
ERROR: 404 not found
Error code
500
may also be displayed. -
Proxy Mode is enabled in Domains > example.com > Hosting & DNS tab > Apache & nginx Settings.
-
Smart Static Files Processing is enabled in Domains > example.com > Hosting & DNS tab > Apache & nginx Settings
Cause
Product issue:
-
#PPPM-13942 "It is now possible to access files in password-protected directories when âSmart static files processingâ and âProxy modeâ are enabled in the âApache & nginxâ settings."
Fixed in:- Plesk Obsidian 18.0.52 25 April 2023 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
1. Log into Plesk.
2. Go to Domains > example.com > Hosting & DNS tab > Apache & nginx Settings.
3. Disable Smart static files processing or enable Serve static files directly by nginx.
Note: when enabling Serve static files directly by nginx, mod_rewrite
rules will not be applied