apache
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-16
# # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:[url]http://httpd.apache.org/docs/2.2/[/url]> for detailed information. # In particular, see # <URL:[url]http://httpd.apache.org/docs/2.2/mod/directives.html[/url]> # for a discussion of each configuration directive. # # # Do NOT simply read the instructions in here without understanding # what they do. They''re here .ly as hints or reminders. If you are unsure # consult the .line docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the ''global environment''). # 2. Directives that define the parameters of the ''main'' or ''default'' server, # which responds to requests that aren''t handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server''s control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/etc/httpd" will be interpreted by the # server as "/etc/httpd/logs/foo.log". # ### 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.
# # # Don''t give away too much information about all the subcomponents # we are running. Comment out this line if you don''t mind remote sites # finding out what major optional modules you are running ServerTokens OS # # ServerRoot: The top of the directory tree under which the server''s # configuration, error, and log files are kept. # # NOTE! If you intend to place this . an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at <URL:[url]http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile[/url]>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/etc/httpd" # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile run/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 120 # # KeepAlive: Whether or not to allow persistent connections (more than # .e request per connection). Set to "Off" to deactivate. # KeepAlive Off # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend |
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: linux在VM下分辨率的问题下一篇: linux cluster heartbeat
关于apache的所有评论