Apache makes it easy to quickly setup username and password authentication using htaccess. In this tutorial, we'll cover the basics of enabling authentication for any directory that Apache is serving. In this example, we'll create and lock a new folder.