Директива
Satisfy по умолчанию
All. Если переключить на
Any, то будет поведение как нужно.
Например, IP 192.168.1.2 и файл паролей /var/www/.htpasswd
AuthType Basic
AuthName "Restricted Resource"
AuthUserFile /var/www/.htpasswd
Require valid-user
Order Allow,Deny
Allow from 192.168.1.2
Satisfy Any
В Apache 2.4 есть
<RequireAll> и
<RequireAny>
https://httpd.apache.org/docs/2.4/howto/auth.html#...
By default all Require directives are handled as though contained within a <RequireAny> container directive. In other words, if any of the specified authorization methods succeed, then authorization is granted.
По умолчанию для всех Require используется
<RequireAny>.
AuthType Basic
AuthName "Restricted Resource"
AuthUserFile /var/www/.htpasswd
Require valid-user
Require ip 192.168.1.2