I have to produce a login for customers in the group users. Now I've this:

AuthType Basic
AuthName "Restricted Files"
AuthUserFile path??

What's the road to the .htaccess for customers in the group users? How do i solve this?

Should you havent produced one with no you have given 1 to utilize then there inst one.

You would need to create it.

For instance an easy authentication .htaccess file could be:

AuthUserFile /home/domain/.htpasswd
AuthName "Please enter password"
AuthType Basic

Then for any group file you'd have something similar to this for the .htaccess:

AuthUserFile /home/domain/.htpasswd
AuthGroupFile /home/domain/.htgroup
AuthName "Please enter password"
AuthType Basic

<Limit GET POST>
require user admin admin2 admin3
require group admins
</Limit>

To produce the .htpasswd file you are able to run the follow command:

htpasswd -c .htpasswd username

Make certain you are well on the folder you would like the file create or utilize it such as this to specify the folder:

htpasswd -c /home/domain/.htpasswd username

Once you have produced the first password of file using the above command you might run this for that subsequent usernames:

htpasswd .htpasswd username

or if you're not within the directory the file is:

htpasswd /home/domain/.htpasswd username

A good example of the way the .htpasswd file is:

admin:$1$VqLTB/..$w1WS3OUqXwOr42xTHR31e1
admin3:$1$VqLTB/..$w1WS3OUqXwOr42xTHR31e1
admin3:$1$VqLTB/..$w1WS3OUqXwOr42xTHR31e1
otheruser:$1$zf1Wo/..$SRY1LpMqYVCsndxlLD1Hz/

1 user per line where it's user:password


For that .htgroup file it might seem like this:

admins:admin1,admin2,admin3
othergroup:otheruser

1 Group per line.


Within the above instruction, be sure to change /home/domain for your domain and username path in order to the folder you really need it to stay in.

Also make certain that the .htgroup and .htpassword files aren't accessible through the public by either puting them right into a folder your webbroswer doesn't allow access or within the cgi-bin folder that's usually restricted automatically.

Presuming you mean a method group (you authored "UNIX group"): use mod_authz_unixgroup and mod_authnz_exterior.

AddExternalAuth pwauth  /usr/sbin/pwauth
SetExternalAuthMethod   pwauth  pipe
...
<Location /path/to/restricted/...>
  AuthType Basic
  AuthName "Restricted area"
  AuthBasicProvider external
  AuthExternal pwauth
  AuthzUnixgroup on
  Require group ...
</Location>