redhat enterprise linux 5下apache部署及简单的配置过程
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-03
|
here without understanding # what they do. They''re here only as hints or reminders. If you are unsure# consult the online 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 当服务器响应主机头(header)信息时显示Apache 的版本和操作系统名称# # 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 on 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 设置运行Apache 时使用的PidFile 的路径 # # Timeout: The number of seconds before receives and sends time out. # Timeout 120 超时时间 # # KeepAlive: Whether or not to allow persistent connections (more than # one 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 you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 在使用保持连接功能时,设置客户一次请求连接能响应文件的最大上限 # # KeepAliveTimeout: |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn
为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
|