Apache: Access management via .htaccess not working

Solution 1:

I have to use the "Require" directive, then it works.

Thanks to @MrWhite