通常アクセスは許可するけど、特定のIPからのアクセスのみBasic認証を表示させるっていうあまりないケース時の対応。
<Directory /path/to/taget> Satisfy Any Order Allow,Deny Allow from All Deny from XXX.XX.XX.XX AuthType Basic AuthName "Input ID and Password." AuthUserFile /path/to/htpasswd-file Require valid-user </Directory>
Satisfy Anyと記述することで、IP制限かBasic認証のどちらかを通ればアクセス可能という設定にできる。