To restrict access to specific to files in Apache via the httpd.conf you can use the Files directive.
An example is shown below.
AuthUserFile /apps/apache/passwords/secureFilePass
AuthName “SecureFile”
AuthType Basic
Require valid-user