Hi,

I asked yesterday about using httpd.conf to set the AuthUserFile dynamically.

Maybe I'm trying to paddle up a creek in a barb wire canoe.

Is it possible to do something like below? i.e. use a variable in the 
AuthUserFile line? Or how can I do this?

<Directory /systems/v2.0>
PerlSendHeader On
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI

RewriteRule ^/bin/([^/]+)/(.*) /systems/v2.0/$2 [E=STATUS:$1] [PT]
######################## This line
AuthUserFile /systems/$1/passwd/users
######################## and this line
AuthName "$1"
AuthType Basic
require valid-user
<Limit GET POST PUT DELETE>
require valid-user
</Limit>

ErrorDocument 401 /systems/v2.0/error/401.html
ErrorDocument 403 /systems/v2.0/error/403.html
ErrorDocument 404 /systems/v2.0/error/404.html
ErrorDocument 500 /systems/v2.0/error/500.html
</Directory>

regards

Scott

----------------------------------------
Scott Alexander tietoverkkosuunnittelija
[EMAIL PROTECTED]
gsm: +358 (0)40 7505640

Reply via email to