Apache - Same username in several .htpasswd files
Posted
by
greydet
on Server Fault
See other posts from Server Fault
or by greydet
Published on 2012-11-30T22:03:28Z
Indexed on
2012/11/30
23:07 UTC
Read the original article
Hit count: 278
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?
© Server Fault or respective owner