• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Adding Directory Password Protection Make Resources To Become Not Found

sam.kh

New Pleskian
I am new to this forum (so my apologies if I am not asking this in the right place.) I searched in the forum and couldn't find any thread with the similar issue. Our site is hosted on Plesk Onyx 17.8.11 CentOS Linux 7.6.1810 (Core)‬ when we add password protection to any directory, after we navigate to that directory and logging in with the username/password none of the resources needed to correctly show the page under that directory come up. Console shows many 404 errors for all images, styles files, js files, we only see text on the page. When we remove the password protection the directory works fine and the page loads correctly with all the resources working.
 
Last edited:
Just to provide more details, we get not found error for all resources files even if we set their permissions to 777 (when the password protection is enabled.) Another piece of info is that only one domain has this issue (the main domain). For the other domains on the same plesk account when we add password protection to them they work without any problem.
 
Last edited:
Just to provide more details, we get not found error for all resources files even if we set their permissions to 777 (when the password protection is enabled.) Another piece of info is that only one domain has this issue (the main domain). For the other domains on the same plesk account when we add password protection to them they work without any problem.
Hello. Could you please provide more info about your domain configuration? Do you use apache or nginx? Do you use nginx proxy, cache and static files serving? Any specific nginx directives?
 
Hello. Could you please provide more info about your domain configuration? Do you use apache or nginx? Do you use nginx proxy, cache and static files serving? Any specific nginx directives?

Thanks, yes, I am using FPM application served by Apache. Under Apache & nginx Settings everything is as default.

Proxy mode: Enabled
Smart static files processing: Enabled
Serve static files directly by nginx: Disabled
Enable nginx caching: Disabled

I only have these additional nginx directives. Which I have on another domain too that has no issues with password protection.

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;

location ~* \.(jpg|jpeg|png|gif|ico|css|js|txt)$ {
expires 7d;
}
 
Back
Top