Setting Passwords

Basic Authentication

Lab
  • Create a directory named C:\web\project
  • Create an index.html file in it.
  • View the page in your browser.
  • Create a .htaccess file in it (contents as above)
  • Attempt to reload the page; observe the basic authentication challenge.

Users and Groups

The Apache software includes utilities for defining user and group IDs.
Lab
  • Create a directory named C:\auth
  • Create a passwd file by running this command:
    htpasswd -c C:\auth\passwd arnold
  • Create a file named C:\auth\group containing:
    ourteam:arnold
  • Reload the team web page, enter the password, observe that the page is now delivered.

Documentation