HTTP::Server::Directory::UserDirs - describe user directories
HTTP::Server::Directory::UserDirs is a HTTP::Server::Directory
# implicit creation of ::Directory object my $vh = HTTP::Server::VirtualHost ->new(user_dirs => {location => ...}) # explicit use my $ud = HTTP::Server::Directory::UserDirs ->new(location => sub {...}); my $vh = HTTP::Server::VirtualHost->new(user_dirs => $ud);
Each HTTP::Server::VirtualHost may define user directories.
HTTP::Server::Directory::UserDirs->new(OPTIONS|HASH-of-OPTIONS)
The user-dir rewrite routine has by default Apache-like behavior.
Option --Defined in --Default allow HTTP::Server::Directory <undef> allow_users undef deny HTTP::Server::Directory <undef> deny_users [] location HTTP::Server::Directory CODE path HTTP::Server::Directory <ignored> user_subdirs 'public_html'
. allow => CIDR|HOSTNAME|DOMAIN|CODE|ARRAY
. allow_users => ARRAY
Lists the user homes which are available. Cannot be used together with deny_users. By default, all user homes are permitted, even those of system usernames like ftp and cups. Only used with the default user-dir rewrite rule.
deny_users
ftp
cups
. deny => CIDR|HOSTNAME|DOMAIN|CODE|ARRAY
. deny_users => ARRAY
Only used with the default user-dir rewrite rule.
. location => DIRECTORY|CODE
. path => STRING
. user_subdirs => PATH
$obj->location
See "Attributes" in HTTP::Server::Directory
$obj->path
$obj->allow(CLIENT, SESSION, REQUEST, URI)
See "Permissions" in HTTP::Server::Directory
$obj->filename(PATH)
This module is part of HTTP-Server-Multiplex distribution version 0.11, built on October 01, 2008. Website: http://perl.overmeer.net/httpd-multiplex/
Copyrights 2008 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install HTTP::Server::Multiplex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Server::Multiplex
CPAN shell
perl -MCPAN -e shell install HTTP::Server::Multiplex
For more information on module installation, please visit the detailed CPAN module installation guide.