I need to configure apache to match / admin reverse location which is rewritten by drupal htacess by default. Just ask http auth for anything that is not / admin / *
I have tried this so far:
<LocationMatch "^ / (?! admin)">
AuthName "Members Only"
AuthType Basic
AuthBasicProvider file
AuthUserFile /path/to/.htpasswd
Require valid-user
</ LocationMatch>
authentication apache mod-rewrite
Boian Mihailov Dec 01 2018-11-11T00: 00Z
source share