Add users to the Apache authentication file

Follow these steps:

  • Create a group file. This group file associates a group name with a list of persons in that group and has the following syntax.

      GroupName: bitnami user admin user2
  • Add the user(s) to your password file:

      $ htpasswd /path/to/your/password/file user2
  • Modify the Apache configuration as below:

      AuthType Basic
      AuthName "By Invitation Only"
      # Optional line:
      AuthBasicProvider file
      AuthUserFile /path/to/your/password/file
      AuthGroupFile /path/to/your/groups/file
      Require group GroupName
  • Restart the Apache server.

Last modification December 21, 2022