Creating a Password File for the Apache HTTP Server

The Apache HTTP server requires a password file.

Procedure

  1. Open a terminal window.
  2. Navigate to APACHE_HOME.
  3. Create a htpasswd subdirectory to store the password file. Create a blank htpasswords file, if not already there in this directory.
  4. Navigate to the APACHE_HOME/bin directory.
  5. Create a partner identity using the Apache htpasswd utility for the user asgpartner01 with password asgpartner01, shown as follows:

    For example, on the Windows platform:

       htpasswd APACHE_HOME\htpasswd\htpasswords asgpartner01
       New Password:asgpartner01
       Enter New Password:asgpartner01
  6. Create a second partner identity using the Apache htpasswd utility for the user asgpartner02 with password asgpartner02, shown as follows:

    For example, on the Windows platform:

       htpasswd APACHE_HOME\htpasswd\htpasswords asgpartner02
       New Password:asgpartner02
       Enter New Password:asgpartner02