AuthUserFile
path in the Apache config file. For Ubuntu, it is located in /etc/apache/conf-enabled/YOUR_SITE_PROFILE
.conf. For this example, the path is /etc/apache2/.htpasswdFIRST
account for user with login user1sudo htpasswd -c /etc/apache2/.htpasswd user1
sudo htpasswd /etc/apache2/.htpasswd anotheruser
Note that we do not have -c
in the command.