====== Add HTTP Password Login to a Site ====== ===== For adding the very first user ===== - Find out the ''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/.htpasswd - For create the ''FIRST'' account for user with login user1sudo htpasswd -c /etc/apache2/.htpasswd user1 - Type in the new password for user1 - Type the password again - The password is added. ===== For adding additional user ===== - Type sudo htpasswd /etc/apache2/.htpasswd anotheruser Note that we do not have ''-c'' in the command. - Type in the new password for anotheruser - Type the password again - The password is added.