I'm looking for a way to force Apache to look for files relatively to DocumentRoot not to ServerRoot. Now if I create .htaccess as follows:
#Protect Directory
AuthName "Please provide valid username and password"
AuthType Basic
AuthUserFile .htpasswd
Require valid-user
Apache looks for the .htpasswd in:
/opt/homebrew/opt/httpd/.htpasswd
and I would like to look for it in:
/opt/homebrew/var/www/FOLDER/.htpasswd
.htaccess is placed in:
/opt/homebrew/var/www/FOLDER/.htaccess
I don't want to change ServerRoot and move all the configuration.