- Plesk for Linux
What happens when a password protection for a directory is set in Plesk > Domains > example.com > Password-Protected Directories? How does the function work?
Password-Protected Directories feature allows to limit public access to specific areas of the website, to secure them with a basic http authorization. It allows to designate certain directories of a website as "password protected". Anyone accessing such a directory or any directories and files inside it will be presented with a challenge and will need to provide a correct username and password to view the protected content.
When basic http authorization for directory is set in Domains > example.com > Password-Protected Directories, Plesk adds the following line in
CONFIG_TEXT: <Directory "/var/www/vhosts/example.com/httpdocs/directory">
The authorization file is stored in