Home  >  Article  >  Backend Development  >  APACHE6_PHP Tutorial

APACHE6_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:29:19834browse

5.1.2 AuthDBMUserFile Syntax: AuthDBMUserFile File name Used for: directory, .htaccess Requirements: AuthConfig Status: Extended Module: mod_auth_dbm AuthDBMUserFile This file sets the name of the DBM file used for authentication, which contains a list of users and passwords. Filename is the absolute path to the user's file. This file is keyed by the username. The value after the user is the crypt() encrypted password, optionally followed by colons and optional data. The server will ignore these colons and data. Security: Make sure AuthDBMUserFile is stored outside the server's file tree; do not place it in the directory it is intended to protect. Otherwise the client will be able to download the AuthDBMUserFile. See AuthName, AuthType and AuthDBMGroupFile. 5.2 mod_cookies module This module is included in the file mod_cookies.c and will not be compiled by default. It serves Netscape(TM) cookies. There is no documentation for this mod. 5.2.1 CookieLog Syntax: CookieLog file name Used for: server config, virtual host Status: Experimental Module: mod_cookies CookieLog This command sets the file name used to record cookies. This file name is relative to the ServerRoot directory. 5.3 mod_dld module This module is included in the file mod_dld.c and will not be compiled by default. It provides the functionality to load executable files and modules into the server at startup, using the GNU dld library. 5.3.1 Summary The optional dld module is a proof-of-concept piece of code that loads other modules into the server just like configuring itself (only the first time; so far , re-reading the configuration file cannot affect already loaded modules), using GNU's Dynamic Link Library (DLD). It doesn't compile in by default because not everyone has DLD, but I did when I tried it. (note the last few words). Note that LoadFile /lib/libc.a seems to be required for some reason. Note: DLD needs to read the symbol table outside the server program when the server starts; these instructions will fail if the server cannot find its own program code at startup. 5.3.2 LoadFile Syntax: LoadFile file name file name... Used for: server config Status: Experimental module: mod_dld LoadFile This command links the specified destination file or library when the server starts; this is used to load Enter additional code that may be required for some modules to operate. File names are relative to the ServerRoot. 5.3.3 LoadModule Syntax: LoadModule module file name for: server config Status: Experimental module: mod_dld LoaddModule This command links the file name of the target file or library and adds the named module to the list of active modules. . A module is an external parameter of type module in the file. For example: LoadModule ai_backcompat_module modules/mod_ai_backcompat.o LoadFile /lib/libc.a loads the modules in the modules subdirectory of ServerRoot. 5.4 mod_log_agent module This module is included in the file mod_log_agent.c and is not compiled by default. It provides logging capabilities for client user programs. 5.4.1 AgentLog Syntax: AgentLog file-pipeline default: AgentLog logs/agent_log Used for: server config, virtual host Status: Extension module: mod_log_agent AgentLog This command sets the file name of the server to log incoming requests, and its content is UserAgent this header. A file-pipeline is one of these: A file name A file name relative to the ServerRoot `| followed by a command A program that receives reference record information from standard input. Note that no new process will be started if the virtual host inherits the RefererLog settings from the primary server. Security: If the program is used here, it will execute as the user who started httpd. If the server is started by root, then this program is executed by root; therefore, the security of this program must be determined. This directive is provided for compatibility with NCSA 1.4. 5.5 mod_log_config module This module is included in the file mod_log_config.c and is not compiled by default. It provides the functionality to log requests to the server, using a format specified by the user. 5.5.1 Summary This is an experimental module that implements the TransferLog directive (same as the normal logging module), and another directive, LogFormat. It doesn't surprise me if there are mistakes. The parameter of LogFormat is a string, which can contain the text to be copied to the log file, and the `% directive as listed below: %...h: remote host %...l: remote check-in name (from Learned from identd, if the other party has support) %...u: Remote user (learned from auth, if the returned status (%S) is 401, it may be fake) %...t: Time, general time record format %...r: the first line of the request %...s: status. For requests that encounter internal redirection, this is the status of the { f original} request --- %...>s is the last. %...b: Bytes sent %...{foobar}i: Contents of Foobar: Header lines in the request to be sent to the client.%...{foobar}o: The content of Foobar: the header line `... in the reply (reply) This part can be omitted completely (e.g. "%h %u %r %s %b"), or It can express a condition to include an item (if the condition is not met it will be replaced by `-). Note that there is no escaping performed on %r, %...i and %...o on strings; some of you with good memories may remember that I thought this was a bad idea , I'm still a fan of it, but it's hard to see how to do the right thing with `%...i' unless we URL-escape everything and break them with CLF. The condition takes the form of a list of HTTP status codes, which may or may not be preceded by `! . Therefore, `%400,501{User-agent}i records User-agent: only affects error status 400 and 501 (bad request, no implementation); `%!200,304,302{Referer}i records Referer: does not return normal status request function. The default LogFormat reproduces CFL; below. The idea of ​​using it with a virtual host is as follows: the virtual host can have its own LogFormat, or its own TransferLog. If it does not have its own LogFormat, it inherits it from the primary server. If it does not have its own TransferLog, it writes to the same descriptor (meaning the same `|... program). The above is taken from PHPUSER. COM

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531707.htmlTechArticle5.1.2 AuthDBMUserFile Syntax: AuthDBMUserFile File name for: directory, .htaccess Requirements: AuthConfig Status: Extension module : mod_auth_dbm AuthDBMUserFile This file is set as...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn