Adding Password Authentication on Apache with Ubuntu 14.04
Update packages and make sure apache2-utils is installed. sudo apt-get update sudo apt-get install apache2 apache2-utils Add the user to the password file. (Only use the -c parameter the first time to create the file.) sudo htpasswd -c /etc/apache2/.htpasswd USERNAME Configure the access control within the virtual host definition /etc/apache2/sites-available/HOST_CONF_FILE. Add the lines in red. … Continue reading Adding Password Authentication on Apache with Ubuntu 14.04