Apache::AuthzUserDir - mod_perl UserDir authorization module
<Directory /home/*/public_html> PerlAuthzHandler Apache::AuthzUserDir # This is the standard authentication stuff. # Any can be used, but basic .htpasswd authentication # is shown for simplicity. AuthName "Foo Bar Authentication" AuthType Basic AuthUserFile /usr/local/apache/.htpasswd-userdirs # This tells apache to only let in users whose # http login name matches the * in /home/*/public_html require valid-user </Directory>
Apache::AuthzUserDir is designed to work with mod_perl and Apache's mod_userdir such that a single systemwide <Directory> block and .htpasswd file can be used to allow authenticated users only into their own UserDir (typically, public_html) directories.
This is especially useful with mod_dav and mod_ssl running on an alternate port for users to upload to their public webspace.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apache::AuthzUserDir, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::AuthzUserDir
CPAN shell
perl -MCPAN -e shell install Apache::AuthzUserDir
For more information on module installation, please visit the detailed CPAN module installation guide.