Apache HTTP latest official configuration (Chinese translation [2])

xiaoxiao2021-03-06  37

#Scoreboardfile logs / apache_runtime_status

#

# PIDFILE: The File in Which The Server SHOULD Record ITS Process

# Identification Number When IT Starts.

#PIDFILE: When the server starts, the server needs to store its process ID number in this file.

Pidfile logs / httpd.pid

#

# TIMEOUT: The Number of Seconds Before Receives and Sends Time Out.

#Timeout: Timeout settings for receiving and sending data, number of seconds

TIMEOUT 300

#

# KeePalive: WHETHER or NOT To ALLOW PERSIStent Connections (More Than

# One request per connection). set to "off" to deactivate.

#Keepalive: Do you support persistence coupling (instead of each request to build a connection), set off to close this feature

Keepalive ON

#

# MaxkeepaliveRequests: The maximum number of requests to allow

# DURING a Persistent Connection. set to 0 to allow an unlimited amount.

# We recomment you leave this number high, for maximum performance.

#MaxkeepaliveRequests: The maximum number of requests allowed during persistent connections. Set to 0 means not restricted

It is recommended to improve the number to improve performance.

MaxkeepaliveRequests 100

#

# KeePaliveTimeout: Number of Seconds to wait for the next request from the

# Same Client On The Same Connection.

#Keepalivetimeout: In the same customer connection, wait for the next request.

KeepaliveTimeout 15

##

## Server-pool size regulation (MPM SPECIFIC)

## Regular Server-Pool Server Pool Size (Number per minute)

#Winnt MPM Winnt MPM

# ThreadsperChild: Constant Number of Worker Threads in The Server Process

ThreadperChild: Number of threads working in the server process

# MaxRequestsperChild: Maximum Number of Requests a Server Process Serves

Maximum number of requests for each service process

ThreadsperChild 250

MaxRequestSperChild 0

#

# Listen: allows you to bind apache to specific ip addresss and / or

# ports, instead of the default. See Also the

# DIRECTIVE.

#Listen: Allows you to bind Apache to the specified IP address or port, not the default port, please refer to instruction

# Change this to listen on specific ip addresss as shown Below to # prevent Apache from Glomming Onto All Bound IP Addresses (0.0.0.0)

# Specify the IP address of the listener below to prevent Apache from seize all binding IP addresses

#Listen 12.34.56.78:80

Listen 80

#

# Dynamic Shang Object (DSO) Support

# Dynamic Sharing Object Supports DSO

# To beable to use the functionality of a module Which Was Built as a dso you

# Have to Place Corresponding `loadmodule 'Lines at this location sol

# DIRECTIVES Contained IN IT Are Actually Available_before_ They is used.

# Staticly compiled modules (Those Listed by `httpd -l ') do not need

# to be loaded here.

# In order to be able to use the module function, the module usually builds in the DSO, you should use the LoadModule line below such that the functionality can be obtained before use. Static compilation module (listed in HTTPD-1) does not need to be loaded

# EXample:

# Loadingmodule foo_module modules / mod_foo.so

#

LoadModule Access_Module Modules / MOD_ACCESS.SO

LoadModule ActionS_Module Modules / MOD_A / AACTIONS.SO

LoadModule Alias_Module Modules / MOD_ALIAS.SO

LoadModule Asis_Module Modules / MOD_ASIS.SO

LoadModule Auth_Module Modules / MOD_AUTH.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

LoadModule AutoIndex_Module Modules / MOD_AUTOINDEX.SO

#LOADMODULE CERN_META_MODULE MODULES / MOD_CERN_META.SO

LoadModule CGI_Module Modules / MOD_CGI.SO

#LoadModule DAV_MODULE MOD_DAV.SO

#LoadModule DAV_FS_MODULE MODULES / MOD_DAV_FS.SO

LoadModule Dir_Module Modules / MOD_DIR.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 INCLUDE_MODULE MODULES / MOD_INCLUDE.SO # LoadModule Info_Module Modules / Mod_info.so

LoadModule Isapi_Module Modules / MOD_ISAPI.so

LoadModule Log_config_module modules / mod_log_config.so

LOADMODULE MIME_MODULE MODULES / MOD_MIME.SO

#LOADMODULE MIME_MAGIC_MODULE MIME_MAGIC_MODULE MOMES / MOD_MIME_MAGIC.SO

#LoadModule Proxy_Module Modules / Mod_Proxy.so

#LoadModule Proxy_connect_module modules / mod_proxy_connect.so

#LoadModule Proxy_http_module modules / mod_proxy_http.so

#LoadModule Proxy_ftp_module modules / mod_proxy_ftp.so

LoadModule Negotiation_Module Modules / MOD_NEGOTITION.SO

#LoadModule Rewrite_Module Modules / MOD_rewrite.so

LoadModule SetENVIF_MODULE MODULES / MOD_SETENVIF.SO

#LoadModule Speling_Module Modules / MOD_SPELING.SO

#LoadModule Status_Module Modules / MOD_STATUS.SO

#LoadModule Unique_ID_Module Modules / MOD_UNIQUE_ID.SO

LoadModule Userdir_Module Modules / MOD_USERDIR.SOSO

#LoadModule Usertrack_Module Modules / Mod_USERTRACK.SO

#LOADModule Vhost_Alias_Module Modules / Mod_Vhost_Alias.so

#LoadModule SSL_Module Modules / Mod_ssl.so

#

# ExtendedStatus Controls WHether Apache Will Generate "Full" status

# Information (ExtendedStatus on) or Just Basic Information (ExtendedStatus

# OFF) WHEN The "Server-Status" Handler IS Called. The default is off.

# 扩 状态 状态 控制 控制 a a 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息 信息

#ExtendedStatus on

### Section 2: 'Main' Server Configuration

# 第二 第二: Main service configuration

# The directives in this section set up the value used by the 'main'

# Server, Which Responds to any requests That aren't handled by a

# Definition. Thase Values ​​Also Provide Defaults for

# any Containers You May Define Later in The File. # This section sets the value of the instructions, will be used by the primary service, the primary service responds to those processed by , these values ​​are also Containers provide default values, you can define in later files

# All of these Directives May Appear INSIDE Containers,

# in Which Case these Default settings will be overridden for the

# Virtual host being defined.

转载请注明原文地址:https://www.9cbs.com/read-65874.html

New Post(0)