Show pageBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 user1<code>sudo htpasswd -c /etc/apache2/.htpasswd user1</code> - Type in the new password for user1 - Type the password again - The password is added. ===== For adding additional user ===== - Type <code>sudo htpasswd /etc/apache2/.htpasswd anotheruser</code> 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. ubunut/add_http_password_login_to_a_site.txt Last modified: 2019/03/28 16:49by chongtin