Apache - Same username in several .htpasswd files
- by greydet
In a virtual host, I setup two different <Location> blocks for which the access is restricted by two basic authentication htpasswd files.
One htpasswd contains different usernames + a common user name. The other htpasswd file only contains the common user name.
My problem is that once users connect a location with the common user name, they have immediate access to the other location without being asker for a different user name.
Is there a way to restrict the username access only to the corresponding htpasswd file?
Is there a way for users to ask to be re-prompted for another username/password?