Apache and .htaccess
a2jfreak
Houston, TX Member
If I try to access directory X and file Y, I'm allowed to view the file, rather than it asking for a user/pass.
Here's my .htaccess file, please tell me what is wrong.
[php]
AuthName "Add your login message here."
AuthType Basic
AuthUserFile /var/www/html/csm/X/.htpasswd
AuthGroupFile /var/www/html/csm/X/.htgroup
require group csm
<Files "Y.php">
require group csm
</Files>
ErrorDocument 404 /errorDoc.html
ErrorDocument 403 /errorDoc.html
Options -Indexes
[/php]
Here's my .htaccess file, please tell me what is wrong.
[php]
AuthName "Add your login message here."
AuthType Basic
AuthUserFile /var/www/html/csm/X/.htpasswd
AuthGroupFile /var/www/html/csm/X/.htgroup
require group csm
<Files "Y.php">
require group csm
</Files>
ErrorDocument 404 /errorDoc.html
ErrorDocument 403 /errorDoc.html
Options -Indexes
[/php]
0
Comments
Anyway, next question: how can I make it so that if the authorization hasn't occurred in the last X minutes then Apache will ask again?