[ Pobierz całość w formacie PDF ]
.Dynamicallylinked modules are not loaded into memory with the httpd server process unless those modules are explicitlyidentified to be loaded by the LoadModule directive.The blocks of code shown below select several modulesto be loaded into memory by using the LoadModule directive with the module name and the path to themodule (relative to ServerRoot).The following text shows a partial listing of these modules:## Dynamic Shared Object (DSO) Support## To be able to use the functionality of a module which was built as a DSO you# have to place corresponding `LoadModule' lines at this location so the# directives contained in it are actually available _before_ they are used.# Please read the file README.DSO in the Apache 1.3 distribution for more# details about the DSO mechanism and run `httpd -l' for the list of already# built-in (statically linked and thus always available) modules in your httpd# binary.## Note: The order is which modules are loaded is important.Don't change# the order below without expert advice.## Example:# LoadModule foo_module modules/mod_foo.so#LoadModule mmap_static_module modules/mod_mmap_static.soLoadModule vhost_alias_module modules/mod_vhost_alias.soLoadModule bandwidth_module modules/mod_bandwidth.soLoadModule throttle_module modules/mod_throttle.soLoadModule env_module modules/mod_env.soLoadModule config_log_module modules/mod_log_config.soLoadModule agent_log_module modules/mod_log_agent.soLoadModule referer_log_module modules/mod_log_referer.so#LoadModule mime_magic_module modules/mod_mime_magic.soLoadModule mime_module modules/mod_mime.soLoadModule negotiation_module modules/mod_negotiation.soLoadModule status_module modules/mod_status.soLoadModule info_module modules/mod_info.soLoadModule includes_module modules/mod_include.so.# Reconstruction of the complete module list from all available modules# (static and shared ones) to achieve correct module execution order.# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]ClearModuleList#AddModule mod_mmap_static.cAddModule mod_vhost_alias.cAddModule mod_bandwidth.cAddModule mod_throttle.cAddModule mod_env.cAddModule mod_log_config.cAddModule mod_log_agent.cAddModule mod_log_referer.c#AddModule mod_mime_magic.c.Apache modules are included in the list of active modules via the AddModule directive.The ClearModuleListdirective removes all entries from the current list of active modules.It is important to synchronize theLoadModule and AddModule blocks above; otherwise, the modules may not be available to the server atrun-time.Each of the standard dynamically linked Apache modules is described in Table 21-1.Table 21-1: Dynamic Shared Object (DSO) ModulesModule Descriptionmod_access Provides access-control based on originating hostname/IP address.mod_actions Conditionally executes CGI scripts based on the file s MIME type or therequest method.mod_alias Allows for redirection and mapping parts of the physical file system intological entities accessible through the Web server.mod_asis Enables files to be transferred without adding any HTTP headers (forexample, the Status, Location, and Content-type header fields).mod_auth Provides access-control based on user name/password pairs.Theauthentication information is stored in a plain-text file, although thepassword is encrypted using the crypt() system call.mod_auth_anon Similar to anonymous FTP, this module enables predefined user namesaccess to authenticated areas by using a valid e-mail address as a password.mod_auth_db Provides access-control based on user name/password pairs.Theauthentication information is stored in a Berkeley DB binary database file,with encrypted passwords.mod_auth_dbm Provides access-control based on user name/password pairs.Theauthentication information is stored in a DBM binary database file, withencrypted passwords.mod_autoindex Implements automatically generated directory indexes.mod_bandwidth Allows bandwidth limits to be set based on a per-connection or total serverbasis.mod_cgi Controls the execution of files that are parsed by the cgi-script handler orthat have a MIME type of x-httpd-cgi.mod_digest Provides access-control based on user name/password pairs.Theauthentication information is MD5-encrypted and stored in a plain-text file.mod_dir Sets the list of filenames that may be used if no explicit filename is selectedin a URL that references a directory.mod_env Controls environment variables passed to CGI scripts.mod_example Illustrates how the server handles module references.mod_expires Implements time limits on cached documents by using the Expires HTTPheader.mod_headers Enables the creation and generation of custom HTTP headers.mod_imap Controls inline image map files, which have a MIME type of x-httpd-imapor that are parsed by the imap handler.mod_include Implements Server-Side Includes (SSI), which are HTML documents thatinclude conditional statements parsed by the server prior to being sent to aclient.mod_info Provides a detailed summary of the server s configuration, including a list ofactively loaded modules and the current settings of every directive definedwithin each module
[ Pobierz całość w formacie PDF ]