热门标签 | HotTags
当前位置:  开发笔记 > 前端 > 正文

ApacheHTTP最新官方配置(中译版)

文章标题:ApacheHTTP最新官方配置(中译版)。Linux是中国IT实验室的一个技术频道。包含桌面应用,Linux系统管理,内核研究,嵌入式系统和开源等一些基本分类

  文章简介:Apache最新官方配置文件中文版。帮忙web服务器管理员更方便的对Apache进行配置。
  
  #
  
  # Based upon the NCSA server configuration files originally by Rob McCool.
  
  #参照NCSA服务器的配置文件,原版由Rob McCool发布
  
  #
  
  # This is the main Apache server configuration file. It contains the
  
  # configuration directives that give the server its instructions.
  
  # See for detailed information about
  
  # the directives.
  
  #这是Apache server的主配置文件. 它包含配置指令,来指示服务器
  
  #请参考 http://httpd.apache.org/docs-2.0 了解关于指令的详细信息
  
  # Do NOT simply read the instructions in 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').
  
  # 1. 控制Apache server的全局操作的指令(全局环境变量).
  
  # 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.
  
  # 2.配置主服务或者默认服务的指令,它针对那些被虚拟主机以外的请求作出响应.
  
  #  它也包含虚拟主机的一些默认参数
  
  # 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.
  
  # 3. 虚拟主机设置,这使得发往不同的ip或者主机名的请求可以被子同一个Apache服务#   器处理
  
  # 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 "C:/Program Files/Apache Group/Apache2" will be interpreted by the
  
  # server as "C:/Program Files/Apache Group/Apache2/logs/foo.log".
  
  #配置和日志文件名:如果你所指定的文件名以”/”(在Win32中以盘符:/)开头,服务器将以绝对路径来处理。如果不以”/”开头,则以相对于ServerRoot不解释,所以对于logs/foo.log来讲,当ServerRoot为"C:/Program Files/Apache Group/Apache2”时,则指的是
  
  C:/Program Files/Apache Group/Apache2/logs/foo.log文件
  
  # NOTE: Where filenames are specified, you must use forward slashes
  
  # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
  
  注意,在文件名的定义中,必须用正斜杠,而不是反斜杠,如c:/apache而不是c:\apache
  
  # If a drive letter is omitted, the drive on which Apache.exe is located
  
  # will be used by default. It is recommended that you always supply
  
  # an explicit drive letter in absolute paths, however, to avoid
  
  # confusion.
  
  #如果省略了盘符,则以Apache.exe所在的盘符为默认值
  
  建议在绝对路径中永远使用显式的盘符,这样有助于消除误解
  
  ### 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 );
  
  # 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
  
  ##
  
  ## Server-Pool Size Regulation (MPM specific)
  
  ## 常规Server-Pool服务器池的大小(每分钟M数)
  
  # WinNT MPM WinNT 的MPM
  
  # ThreadsPerChild: constant number of worker threads in the server process
  
  ThreadPerChild:服务器进程中工作的线程数量
  
  # MaxRequestsPerChild: maximum number of requests a server process serves
  
  每个服务进程的最大请求数
  
  
  
  ThreadsPerChild 250
  
  MaxRequestsPerChild
推荐阅读
  • 如何实现织梦DedeCms全站伪静态
    本文介绍了如何通过修改织梦DedeCms源代码来实现全站伪静态,以提高管理和SEO效果。全站伪静态可以避免重复URL的问题,同时通过使用mod_rewrite伪静态模块和.htaccess正则表达式,可以更好地适应搜索引擎的需求。文章还提到了一些相关的技术和工具,如Ubuntu、qt编程、tomcat端口、爬虫、php request根目录等。 ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 这是原文链接:sendingformdata许多情况下,我们使用表单发送数据到服务器。服务器处理数据并返回响应给用户。这看起来很简单,但是 ... [详细]
  • 一句话解决高并发的核心原则
    本文介绍了解决高并发的核心原则,即将用户访问请求尽量往前推,避免访问CDN、静态服务器、动态服务器、数据库和存储,从而实现高性能、高并发、高可扩展的网站架构。同时提到了Google的成功案例,以及适用于千万级别PV站和亿级PV网站的架构层次。 ... [详细]
  • Nginx使用AWStats日志分析的步骤及注意事项
    本文介绍了在Centos7操作系统上使用Nginx和AWStats进行日志分析的步骤和注意事项。通过AWStats可以统计网站的访问量、IP地址、操作系统、浏览器等信息,并提供精确到每月、每日、每小时的数据。在部署AWStats之前需要确认服务器上已经安装了Perl环境,并进行DNS解析。 ... [详细]
  • 本文介绍了使用AJAX的POST请求实现数据修改功能的方法。通过ajax-post技术,可以实现在输入某个id后,通过ajax技术调用post.jsp修改具有该id记录的姓名的值。文章还提到了AJAX的概念和作用,以及使用async参数和open()方法的注意事项。同时强调了不推荐使用async=false的情况,并解释了JavaScript等待服务器响应的机制。 ... [详细]
  • 本文讨论了Alink回归预测的不完善问题,指出目前主要针对Python做案例,对其他语言支持不足。同时介绍了pom.xml文件的基本结构和使用方法,以及Maven的相关知识。最后,对Alink回归预测的未来发展提出了期待。 ... [详细]
  • 禁止程序接收鼠标事件的工具_VNC Viewer for Mac(远程桌面工具)免费版
    VNCViewerforMac是一款运行在Mac平台上的远程桌面工具,vncviewermac版可以帮助您使用Mac的键盘和鼠标来控制远程计算机,操作简 ... [详细]
  • 本文介绍了使用PHP实现断点续传乱序合并文件的方法和源码。由于网络原因,文件需要分割成多个部分发送,因此无法按顺序接收。文章中提供了merge2.php的源码,通过使用shuffle函数打乱文件读取顺序,实现了乱序合并文件的功能。同时,还介绍了filesize、glob、unlink、fopen等相关函数的使用。阅读本文可以了解如何使用PHP实现断点续传乱序合并文件的具体步骤。 ... [详细]
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
  • 本文介绍了一些Java开发项目管理工具及其配置教程,包括团队协同工具worktil,版本管理工具GitLab,自动化构建工具Jenkins,项目管理工具Maven和Maven私服Nexus,以及Mybatis的安装和代码自动生成工具。提供了相关链接供读者参考。 ... [详细]
  • 本文介绍了在Linux下安装和配置Kafka的方法,包括安装JDK、下载和解压Kafka、配置Kafka的参数,以及配置Kafka的日志目录、服务器IP和日志存放路径等。同时还提供了单机配置部署的方法和zookeeper地址和端口的配置。通过实操成功的案例,帮助读者快速完成Kafka的安装和配置。 ... [详细]
  • mac php错误日志配置方法及错误级别修改
    本文介绍了在mac环境下配置php错误日志的方法,包括修改php.ini文件和httpd.conf文件的操作步骤。同时还介绍了如何修改错误级别,以及相应的错误级别参考链接。 ... [详细]
  • 如何提高PHP编程技能及推荐高级教程
    本文介绍了如何提高PHP编程技能的方法,推荐了一些高级教程。学习任何一种编程语言都需要长期的坚持和不懈的努力,本文提醒读者要有足够的耐心和时间投入。通过实践操作学习,可以更好地理解和掌握PHP语言的特异性,特别是单引号和双引号的用法。同时,本文也指出了只走马观花看整体而不深入学习的学习方式无法真正掌握这门语言,建议读者要从整体来考虑局部,培养大局观。最后,本文提醒读者完成一个像模像样的网站需要付出更多的努力和实践。 ... [详细]
  • 本文介绍了使用CentOS7.0 U盘刻录工具进行安装的详细步骤,包括使用USBWriter工具刻录ISO文件到USB驱动器、格式化USB磁盘、设置启动顺序等。通过本文的指导,用户可以轻松地使用U盘安装CentOS7.0操作系统。 ... [详细]
author-avatar
品花人生1
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有