• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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