快速业务通道

Linux全攻略--Apache服务器配置与管理(一)

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-15

#1. 控制整个Apache服务器行为的部分(即全局环境变量)
#2. 定义主要或者默认服务参数的指令,也为所有虚拟主机提供默认的设置参数
#3. 虚拟主机的设置参数
# # 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".
# #配置和日志文件名:如果你指定的文件名以“/”开始(win32下以“dirver:/”),
#服务器将使用绝对路径,如果文件名不是以“/”开始的,那么它将把ServerRoot
#的值附加在文件名的前面,例如,对“logs/foo.log",如果ServerRoot的值
#为“/etc/httpd”,则该文件应为“/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.
# ##第一区:全局环境参数
#
#这里设置的参数将影响整个Apache服务器的行为;
#例如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)
Empire CMS,phome.net

# mounted filesystem then please read the LockFile documentation
# (available at <URL:[url]http://httpd.apache.org/docs-2.0/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" #注意!如果你想要将它指定为NFS或其它网络上的位置,
#请一定要去阅读与LockFile有关的文档(可能在
#).
#这将会使你自己也能解决很多问题.
#
#路径的结尾不要添加斜线.
#
ServerRoot "/etc/httpd" # PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile run/httpd.pid #
#串行访问的锁文件保存在本地磁盘上
# #PidFile:记录服务器启动进程号的文件. #
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 120 #Timeout:接收和发送前超时秒数
#
Timeout 120 #
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off #
#KeepAlive:是否允许稳固的连接(每个连接有多个请求),
#设为"Off"则停用.
#
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 #
#MaxKeepAliveRequests:在稳固连接期间允许的最大请求数,
#设为0表示无限制接入.
#我们推荐你将其设为一个较大的值,以便提高性能
MaxKeepAliveRequests 100 #
# KeepAliveTimeout: Number of seconds to wait for the next request from the
Empire CMS,phome.net

# same client on the same connection.
#
KeepAliveTimeout 15 #
#KeepAliveTimeout:在同一个连接上从同一

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号