### Section 1: Global Environment #第一部分全局环境 # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. #本部分的指令将影响整个Apache服务器,例如它所能处理的并发请求数或者它在哪里能够找到其配置文件
# # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # ServerRoot: 服务器的配置,错误和日志文件的根目录 # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at <URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>; # you will save yourself a lot of trouble. #注意:如果将其保存到NFS上或者网络上mounted的文件系统上,然后应该阅读LockFile文档,http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile,将能解决你的很多麻烦. # Do NOT add a slash at the end of the directory path. #不要在目录的末尾加上斜杠 ServerRoot "C:/Program Files/Apache Group/Apache2" ServerRoot:根目录 # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. ScoreBoardFile: 保存服务器内部的处理信息 如果未定议(默认状态),scoreboard将被保存在匿名的共享内存段中,并且对于第三方来讲,是不可获得的 # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. #如果已定义,应确保Apache的两个调用不能共享同一个scoreboard. Scoreboard文件必须存放在可分配的磁盘上 #ScoreBoardFile logs/apache_runtime_status
# # PidFile: The file in which the server should record its process # identification number when it starts. #PidFile:当服务器起努时,服务器需要将其进程ID号存放在此文件中 PidFile logs/httpd.pid
# # Timeout: The number of seconds before receives and sends time out. #Timeout:接收和发送数据的超时设置,秒数 Timeout 300
# # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. #KeepAlive: 是否支持持久联接(而不是每个请求建一个连接),设off关闭此功能 KeepAlive On
# # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. #MaxKeepAliveRequests:在持久连接期间,所允许的最大请求数量。设为0表示不作限制 建议设为较高的数,以提高性能 MaxKeepAliveRequests 100
# # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. #KeepAliveTimeout:在同一个客户连接中,等待下一个请求的等待时间。 KeepAliveTimeout 15










