Gertrude12
IS-IT--Management
I have a problem that I have been unable to find the answer to anywhere else, so I am hoping someone here will be able to help. My DocumentRoot (/Files) contains 23 sub-directories and 34 files. I have apache configured to require authenticated users on the entire directory; however I would like to allow the general public access to one file (info.htm) without entering a username and password. This is my current configuration:
<VirtualHost *:80>
DocumentRoot /Files
ServerName Webserver
ServerAdmin Admin
<Directory "/">
allow from all
AllowOverride All
Options +Indexes
AuthType Basic
AuthName "Authentication Required"
AuthUserFile /scripts/.htaccess
Require valid-user
</Directory>
</VirtualHost>
I have tried using the <files> directive without luck. Any help is greatly appreciated.
<VirtualHost *:80>
DocumentRoot /Files
ServerName Webserver
ServerAdmin Admin
<Directory "/">
allow from all
AllowOverride All
Options +Indexes
AuthType Basic
AuthName "Authentication Required"
AuthUserFile /scripts/.htaccess
Require valid-user
</Directory>
</VirtualHost>
I have tried using the <files> directive without luck. Any help is greatly appreciated.