NAME
Any::Daemon::HTTP::UserDirs - describe user directories
INHERITANCE
Any::Daemon::HTTP::UserDirs
is a Any::Daemon::HTTP::Directory
SYNOPSIS
# implicit creation of ::Directory object
my $vh = Any::Daemon::HTTP::VirtualHost
->new(user_dirs => {location => ...})
# explicit use
my $ud = Any::Daemon::HTTP::Directory::UserDirs
->new(location => sub {...});
my $vh = Any::Daemon::HTTP::VirtualHost->new(user_dirs => $ud);
DESCRIPTION
Each Any::Daemon::HTTP::VirtualHost may define user directories.
See documentation in the base class.
METHODS
See documentation in the base class.
Constructors
See documentation in the base class.
- Any::Daemon::HTTP::UserDirs->new(OPTIONS|HASH-of-OPTIONS)
-
The user-dir rewrite routine has by default Apache-like behavior.
-Option --Defined in --Default allow Any::Daemon::HTTP::Directory <undef> allow_users undef deny Any::Daemon::HTTP::Directory <undef> deny_users [] directory_list Any::Daemon::HTTP::Directory <false> index_file Any::Daemon::HTTP::Directory ['index.html', 'index.htm'] location Any::Daemon::HTTP::Directory CODE path Any::Daemon::HTTP::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 likeftp
andcups
. Only used with the default user-dir rewrite rule. - deny => CIDR|HOSTNAME|DOMAIN|CODE|ARRAY
- deny_users => ARRAY
-
Only used with the default user-dir rewrite rule.
- directory_list => BOOLEAN
- index_file => STRING|ARRAY
- location => DIRECTORY|CODE
- path => PATH
- user_subdirs => PATH
-
Only used with the default user-dir rewrite rule.
Attributes
See documentation in the base class.
Permissions
See documentation in the base class.
- $obj->allow(CLIENT, SESSION, REQUEST, URI)
- $obj->filename(PATH)
- $obj->fromDisk(SESSION, REQUEST, URI)
- $obj->list(DIRECTORY, OPTIONS)
DETAILS
See documentation in the base class.
SEE ALSO
This module is part of Any-Daemon-HTTP distribution version 0.21, built on October 15, 2013. Website: http://perl.overmeer.net/any-daemon/
LICENSE
Copyrights 2013 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