I'm currently searching a solution to re-enable basic authentication with
.htpasswd file in Apache 2.4. Everything was ok using Apache 2.2 and then I upgraded to MAMP Pro 6.4 that implements Apache 2.4. The authentication is now just ignored.
I understood that the key thing is the Directory content of the
Currently, it is configured like that :
<Directory "/Users/Shared/Shared_Items/hostname.domain.eu"> Options Indexes Includes FollowSymLinks AllowOverride All Require all granted AuthType Basic AuthName "Munki Repository" AuthUserFile /Users/Shared/Shared_Items/hostname.domain.eu/munki_repo/.htpasswd Require valid-user </Directory>
So I just added the 4 latest lines in the GUI and the app creates the whole thing.
I tried many solutions suggested and found nothing that works.
I really doubt that there's a bug in Apache 2.4 that prevents totally the usage of basic authentication.