• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Password Protecting Sites with Nginx and PHP-FPM

ScottGoddard

Basic Pleskian
I am seeing some some some strange behaviour when password protecting directories served by nginx and PHP-FPM.

If I have a site set up so that 'Process PHP by nginx' is selected under ('Websites & Domains>Web Server Settings>nginx settings') and set up password protection ('Websites & Domains>Password-Protected Directories') PHP pages are still served without asking for a password.

If I untick 'Process PHP by nginx' the behaviour returns to normal and an attempt to any access files results in the password request.

Is this behaviour by design? If so, it is not made clear when you set up the password protection that it will not apply to PHP pages if you have nginx process the PHP pages.

OS: CentOS 6.6 (Final)
Plesk version: 12.0.18 Update #51

Obviously I can work around this for now but would appreciate any assistance. I have done a search on here and the Knowledge Base but could not find any similar issues
 
Last edited:
Does anyone know if this behaviour is correct? It seems like protecting access to folders using 'Websites & Domains>Password-Protected Directories' does not work for any files served by nginx?

Any help?
 
Update: By deleting and recreating the password protection and the username/password in 'Websites & Domains>Password-Protected Directories' it is now working as expected for all sub folders. However, I cannot get password protection to work at all, on the sites root directory when files are processed via nginx.

Does anyone else have this problem, or is it just me?
 
Back
Top