ServerRoot "/Apache" # you can use the path e: \ web \ apache # ServerRoot to specify the httpd running Directory of the daemon process, after the httpd starts, it will take the initiative to change the current directory of the process to this directory. Therefore, if you set the file or directory specified in the file
ServerRoot '/Apache'
# You can use the path e: \ web \ apache
# 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.
ThreadsPerChild 250
MaxRequestsPerChild 0
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