Using:
Apache 1.3.9
mod_perl 1.21
I want to switch from .htpasswd to a database driven authentication, but I
still want to use my .htaccess for custom per-directory control. I have
read the Eagle book, and it seems that once you go for DB access control you
no longer mention the htaccess.
Does this mean it is no longer used?
What configuration directives can you still use in the .htaccess?
Can I use any of the <Location> directives in my access file?
What directives need to change in the access file? (samples of current
.htaccess below)
Does the AuthUserFile change to PerlAuthenHandler?
Thanks, Cliff
SAMPLES
I have a wide GET (for public access) user directory with a GET/POST admin
subdirectory.
Public .htaccess for http://site/cliffl
# cat .htaccess
# Basic protection
AuthUserFile /wwwhome/.htpasswd
AuthName WWWGTSI
AuthType Basic
<Limit GET >
order deny,allow
deny from any
allow from any
satisfy all
</Limit>
<Limit POST >
order deny,allow
require user cliffl
satisfy all
</Limit>
<Limit PUT DELETE >
order deny,allow
deny from any
</Limit>
Admin .htaccess for http://site/admin/cliffl
# cat .htaccess
# cd admin
# cat .htaccess
AuthUserFile /wwwhome/.htpasswd
AuthName WWWGTSI
AuthType Basic
<Limit GET POST>
order deny,allow
deny from any
require user cliffl
satisfy all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from any
satisfy all
</Limit>