webserver

How to restrict file access in Apache via the httpd.conf?

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

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top