Полезная информация

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 11.6 <Perl> SectionsChapter 11
Web Server Programming with mod_perl
Next: V. Databases

11.7 Apache:: Modules

Apache::Registry is the most commonly used mod_perl module. But there are many more, all available on CPAN. The following table lists the Apache::* modules and which handler they're designed to be used with, but you should also check the apache-modlist.html file on CPAN for the very latest listing.

Apache::CallHandlerMaps filenames to subroutine calls
Apache::DirControls directory indexing
Apache::EmbperlEmbeds Perl code in HTML files
Apache::ePerlEmbedded Perl (ePerl) emulation
Apache::FTPEmulates an FTP proxy
Apache::GzipChainCompresses output from another handler
Apache::JavaScriptGenerates JavaScript code
Apache::OutputChainChains multiple handlers via "filter" modules
Apache::PassFileSends files via OutputChain
Apache::RegistryRuns unaltered CGI scripts
Apache::RobotRulesEnforces robots.txt rules
Apache::SandwichAdds per-directory headers and footers
Apache::VhostSandwichAdds headers and footers for virtual hosts
Apache::SSIImplements server-side includes in Perl
Apache::StageManages a document staging directory
Apache::WDBQueries databases via DBI
Apache::AgentDenyDenies abusive clients
Apache::AuthenAuthenticates users
Apache::AuthCookieAuthenticates and authorizes users via cookies
Apache::AuthenDBIAuthenticates via Perl's DBI

Expires authentication credentials


Authenticates users with Generic Security Service

Apache::AuthenLDAPAuthenticates users with LDAP
Apache::AuthNISAuthenticates users with NIS
Apache::BasicCookieAuthAccepts cookie or basic authentication credentials
Apache::DBILoginAuthenticates using a backend database
Apache::DCELoginAuthenticates within a DCE login context
Apache::AuthAnyAuthenticates with any username/password
Apache::AuthCookieAuthenticates and authorizes via cookies
Apache::AuthzAgeAuthorizes based on age
Apache::AuthzDCEAuthorizes based on DFS/DCE ACL
Apache::AuthzDBIAuthorizes groups via DBI
Apache::AuthNISAuthenticates and authorizes via NIS
Apache::RoleAuthzRole-based authorization
Apache::AccessLimitNumLimits user access by the number of requests
Apache::DayLimitLimits access based on the day of the week
Apache::RobotLimitLimits access of robots

Sends file types based on user's language preference

Apache::DynaRPCTranslates URIs into RPCs
Apache::JunctionMounts remote web server namespace
Apache::LowerCaseGETsTranslates to lowercase URIs as needed
Apache::MsqlProxyTranslates URIs into mSQL queries
Apache::ProxyPassThruSkeleton for vanilla proxy
Apache::ProxyCacheCaching proxy

Converts HTML HTTP-EQUIV tags to HTTP headers

Apache::TimeitBenchmarks Perl handlers
Apache::DumpHeadersDisplays HTTP transaction headers

Logs the number of bytes transferred on a per-user basis

Apache::WatchDogLooks for problematic URIs

Limits resources used by httpd children

Server Configuration

Configures server via LDAP and <Perl> sections

Apache::ConfigDBIConfigures server via DBI and <Perl> sections
Apache::ModuleConfigInterfaces to configuration API
Apache::PerlSectionsUtilities for <Perl> sections
Apache::httpd_confMethods to configure and run an httpd
Apache::srcMethods for finding and reading bits of source
Apache::DBIManages persistent DBI connections.
Apache::SybaseManages persistent DBlib connections.
Apache::MysqlManages persistent mysql connections.

Interfaces and Integration with Various Apache C Modules

Apache::ConstantsConstants defined in httpd.h

Enables use of Apache::Registry scripts within SSI with mod_include

Apache::GlobalGives access to server global variables
Apache::LogErrorGives an interface to aplog_error
Apache::LogFileGives an interface to Apache's piped logs, etc.
Apache::MimeGives an interface to mod_mime functionality
Apache::ModuleGives an interface to Apache C module structures
Apache::OptionsImports Apache::Constants "options"
Apache::ScoreboardGives an interface to scoreboard API
Apache::ServletGives an interface to the Java Servlet engine
Apache::SfioGives an interface to r->connection->client->sf*
Development and Debug Tools
Apache::DebugProvides debugging utilities to mod_perl
Apache::DProfHooks Devel::DProf into mod_perl
Apache::FakeRequestImplements Apache methods offline
Apache::PeekEmulates Devel::Peek for mod_perl
Apache::SawAmpersandMakes sure no one is using $&, $', or $`

Reloads files that are used or required files when updated

Apache::StatusGets information about loaded modules
Apache::SymbolSupports symbols
Apache::testDefines handy routines for make test scripts
Apache::ByterunRuns Perl bytecode modules
Apache::MmapShares data via Mmap module
Apache::PersistentStores data via IPC::, DBI, or disk
Apache::PUTHandler for the HTTP PUT method

Apache::Registry startup script loader


Adaptation of safecgiperl


Maintains client <-> httpd session/state


Signal handlers for mod_perl

Apache::StatePowerful state engine

Previous: 11.6 <Perl> SectionsPerl in a NutshellNext: V. Databases
11.6 <Perl> SectionsBook IndexV. Databases