Apache Password authentication on Ubuntu Server #91


In this tutorial you will learn about Apache password authentication on Ubuntu Server. You will learn how to install apache2-utils and how to use htpasswd command. Also, you will learn how to place restrictions to both the virtual host config file and .htaccess files using the following configuration section containers: Directory, Files, Location and LocationMatch.

Code used during this tutorial:

Useful links:
http://www.liviubalan.com/set-up-apache-virtual-hosts-on-ubuntu-server
http://www.liviubalan.com/apache-virtual-host-explained
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04
http://httpd.apache.org/docs/current/mod/core.html#directory
https://httpd.apache.org/docs/2.4/mod/mod_authn_core.html#authtype
https://httpd.apache.org/docs/2.4/mod/mod_authn_core.html#authname
https://httpd.apache.org/docs/2.4/mod/mod_authn_file.html#authuserfile
https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require
http://httpd.apache.org/docs/current/mod/core.html#files
http://httpd.apache.org/docs/current/mod/core.html#location
http://httpd.apache.org/docs/current/mod/core.html#locationmatch
http://tecadmin.net/how-to-secure-specific-url-in-apache/
http://httpd.apache.org/docs/current/sections.html