Detailed description of httpd. conf files in apache

Source: Internet
Author: User
ServerRoot/Apache # The Path e: webapache # ServerRoot can be used to specify the httpd running Directory for the daemon process. after httpd is started, it will take the initiative to change the current directory in the process to this directory, therefore, if the specified file or directory is ServerRoot/Apache
# You can use the path e: webapache
# ServerRoot is used to specify the httpd running Directory for the daemon process. after httpd is started, it will automatically change the current directory of the process to this directory, therefore, if the specified file or directory is a relative path, the actual path is located under the path defined by ServerRoot.
PidFile logs/httpd. pid
# The Process Number of the httpd daemon process is recorded in the file specified by PidFile. because httpd can actively copy itself, there are multiple httpd processes in the system, but only one process is the initial process, it is the parent process of other processes. sending signals to this process affects all httpd processes. The process number of the httpd parent process is recorded in the file defined by PidFILE.
Timeout 300
# Timeout defines the Timeout interval between the client program and the server. after the Timeout interval (in seconds) is exceeded, the server will be disconnected from the client.
KeepAlive On
# In HTTP 1.0, a single connection can only be used to transmit an HTTP request once, while the KeepAlive parameter is used to support one connection in HTTP 1.1 and multiple transmission functions, in this way, multiple HTTP requests can be transmitted in one connection. Although only a newer browser can support this function, you can still open the application option.
MaxKeepAliveRequests 100
# MaxKeepAliveRequests is the maximum number of requests for an HTTP request that can be performed by a connection. Setting this value to 0 will support infinite transmission requests in one connection. In fact, no client program begged too many pages in a connection, and the connection is usually completed if the upper limit is not reached.
KeepAliveTimeout 15
# KeepAliveTimeout test the time between multiple requests in a connection. if the server has completed a request but has never received the next request from the client program, after the interval exceeds the value set by this parameter, the server will be disconnected.
& Lt; IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
& Lt;/IfModule>
Listen 80
# Port, boot module. many of the following modules are only available in LIUNX
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule mime_module modules/mod_mime.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
# LoadModule cern_meta_module modules/mod_cern_meta.so
# LoadModule env_module modules/mod_env.so
# LoadModule expires_module modules/mod_expires.so
# LoadModule file_cache_module modules/mod_file_cache.so
# LoadModule headers_module modules/mod_headers.so
# LoadModule imap_module modules/mod_imap.so
# LoadModule auth_anon_module modules/mod_auth_anon.so
# LoadModule auth_dbm_module modules/mod_auth_dbm.so
# LoadModule auth_digest_module modules/mod_auth_digest.so

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.