Page 1 of 1

.htpassword solution with Apache 2.4

Posted: Mon Jul 19, 2021 4:17 pm
by FranckS
Hi from France.
I know that it's not an Apache forum but I'm searching for a solution to make a .htpassword authentication functional with MAMP Pro 6.4 and Apache 2.4.
This it the code I used to have with previous versions in additional parameters for Directory directive

AuthType Basic
AuthName "Munki Repository"
AuthUserFile /Users/Shared/Shared_Items/hostname/munki_repo/.htpasswd
Require valid-user

With the upgrade, those lines are commented.
If you uncomment these lines, the authentication is no more required (even not asked).
It's not mandatory in my case to use a .htpasswd.
I just need that a login/password can be sent to the Apache server to protect the data access.
See you !
Franck

Re: .htpassword solution with Apache 2.4

Posted: Tue Jul 20, 2021 8:42 pm
by FranckS
Hi.
Someone gave me an answer : https://serverfault.com/questions/10700 ... entication
It's working as expected from the clients which is the primary need.
See you !
Franck

Re: .htpassword solution with Apache 2.4

Posted: Wed Jul 21, 2021 1:22 pm
by mampsupportmod
Thanks for sharing