--- HTACCESS ---
.htaccess
AuthName "Heading for Dialog Box"
AuthType Basic
AuthUserFile
AuthGroupFile /var/.htgroup
require group htaccessgroupname
.htgroup
htaccessgroupname:
Where is the htaccess password file
which htpasswd
.htpasswrd
htpasswd -c /var/.htpasswd htaccessusername
New password:
Re-type new password:
Adding password for user htaccessusername
HTTPD|APACHE2 configuration
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www"
AccessFileName ".htaccess"
...
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www"
AccessFileName ".htaccess"
...
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
Require all denied
...
Given how AllowOverride is set in a global location might need this entry ...
Directory "/var/www/html/info">
AllowOverride AuthConfig