Description of the Chinese version of Apache’s latest official configuration file

Time:2022-5-8

Apache latest official configuration file Chinese version
#URL:http://httpd.apache.org/docs-2.0/> for detailed information aboutserviceimplementhttp://httpd.apache.org/docs-2.0Learn more about directivesoperationDirective (global environment variable)serviceOr defaultserviceIt responds to requests outside the virtual hostset upThis allows requests to different IP addresses or host names to be processed by the same Apache service # managerserviceThe handler will process as an absolute path. If it does not start with “/”, it will not be interpreted relative to serverroot, so for logs / foo Log, when the serverroot is “C: / program files / Apache group / apache2”, it refers to
### Section 1: Global Environment
#
# ServerRoot: The top of the directory tree under which the server’s
# configuration, error, and log files are kept.
# ServerRoot: serviceThe root directory of the configuration, error and log files of theURL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>;networkMounted files onsystemThen you should read the lockfile document,http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile, will be able tosolveYou have a lot of troubleserviceProcessing information inside the processor
#serviceWhen the actuator starts,serviceThe processor needs to store its process ID number in this file
#set up, seconds
#
#
#
##
#WinNT of MPMserviceNumber of threads in the worker processserviceMaximum number of requests for the process
#
#
#
### Section 2: ‘Main’ server configurationserviceto configureset upValue, will beserviceUsed, mainserviceIn response to requests that are not processed by < virtualhost >, these values also provide default values for the < virtualhost > container, which you can define in the following files
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. [email protected]#Serveradmin: your address, whensystemIn case of failure, I can email you. This address appears in thoseserviceOn the page generated by the manager, such as an error document. For example:[email protected]
ServerAdmin [email protected]

#serviceThe redirection generated by the will not work, and refer to the usecanonicalname instruction.www.moers.com:80

#
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#DocumentRoot:serviceDocument placement directory. By default, all requests start here, except that tokens and aliases will be referred to elsewhere.
#serviceAnd features (including its subdirectories)
#
#set up
<Directory “C:/Program Files/Apache Group/Apache2/htdocs”>

#http://httpd.apache.org/docs-2.0/mod/core.html#options# for more information.http://httpd.apache.org/docs-2.0/mod/core.html#optionsLearn more
#
#service
Order allow,deny
Allow from all

</Directory>

#
#systemset upMatch, such as the user directory is C: / WinNT / profiles / * / my documents / my website or other appropriate
#service# The index. html. var file (a type-map) is used to deliver content-
#
#
#
#serviceIf the type of the document cannot be determined, the default MIME type will be used, for example, according to the extensionserviceThe filter mainly includes text / HTML documents, “text / plain” is a good value. If most of your content is binary, such as applications or images, you may want to use application / octet stream to make the browser try to display binary data, even though they are text
#serviceThe controller identifies the file type according to the content prompt. The mimemagicfile instruction tells the module where to find the “content prompt”.
#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org(on) or 204.62.129.132 (off).www.apache.org(on)Or 204.62.129.132
#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems. On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap#Enablemmap: controls whether files are transferred by memory mapping (required)operationsystem(supported)system(usually under Linux), it should be set to off In somesystemOn, set off, no matter what file is usedsystem, which can improve efficiency. Please refer to the document for details
#
# EnableSendfile: Control whether the sendfile kernel support is
# used to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems. Please see
# http://httpd.apache.org/docs-2.0/mod/core….#enablesendfile#Enablesendfile: controls whether the kernel transfer file is supported (OS support is required). The default is on. If NFS is used, off is used
#
#
#
# You need to enable mod_logio.c to use %I and %O
#LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” %I %O” combinedio
 

Recommended Today

Method of installing database monitoring program bugzilla on Linux system

Here, we will show how to install bugzilla on an Ubuntu 14.04 or CentOS 6.5/7. Bugzilla is a web-based bug tracking software used to record and track the defect database. It is also a free and open source software (FOSS). Its bug tracking system allows individuals and development groups to effectively record some prominent problems […]