• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Question Password-protect whole site root using CLI

danish17

New Pleskian
Hi.

I am using Plesk Obsidian 18.0.39. I wish to be able to password-protect (HTTP Auth) a whole website root. I currently have to use either WordPress Toolkit (GUI) or Password-Protected Directories option via Plesk GUI. I wish to be able to do it using the CLI.

I am aware of protdir; however, I am not able to protect the whole site-root. For example, if the site root is current with path: /var/www/vhosts/xyz.com/current, I cannot password-protect it using protdir.
 
Back
Top