<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ChenTaoqian&#039;s Blog &#187; Apache</title>
	<atom:link href="http://www.chentaoqian.com/archives/category/compute/webhost/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chentaoqian.com</link>
	<description>主机,企业邮箱,域名,空间,服务器,Java,Oracle,PHP,Linux,JS,MySQL,Apache</description>
	<lastBuildDate>Wed, 30 Nov 2011 14:35:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>用apache配置多个tomcat webapp</title>
		<link>http://www.chentaoqian.com/archives/190</link>
		<comments>http://www.chentaoqian.com/archives/190#comments</comments>
		<pubDate>Sat, 06 Jun 2009 10:29:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.chentaoqian.com/?p=190</guid>
		<description><![CDATA[The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT.
     Apache Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies.
     apache2.2 和tomcat6到www.apache.org官方网站下载。
     tomcat 5 版本以后通过ajp13连接器（之前ajp12）与apache相连，tomcat ajp监控端口默认为8009。
     以tomcat6.0为例，需要以下步骤：
    从从tomcat.apache.org下载 [...]]]></description>
		<wfw:commentRss>http://www.chentaoqian.com/archives/190/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache的配置文件</title>
		<link>http://www.chentaoqian.com/archives/188</link>
		<comments>http://www.chentaoqian.com/archives/188#comments</comments>
		<pubDate>Sat, 06 Jun 2009 10:27:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.chentaoqian.com/?p=188</guid>
		<description><![CDATA[本文将针对Apache中有关安全方面的设置做出详细的叙述，涉及到Apache的配置文件、Apache的目录访问控制、在Apache上运行CGI等安全方面的设置。
4.5.1  Apache的配置文件
对于RedHat Linux系统，Apache的配置文件放在/etc/httpd/conf/目录下。如果是自行编译安装的Apache，则视编译时指定的目录路径而定，默认是/usr/local/apache/conf。
在conf目录下有3个Apache的配置文件：
          httpd.conf
          access.conf
          srm.conf
Apache启动时先调用httpd.conf，然后调用srm.conf，最后调用access.conf。但现代版本的Apache为避免管理和维护的混乱，已经改为将所有Apache的相关配置命令放在httpd.conf文件中，不再使用srm.conf和access.conf文件。虽然这两个文件仍然存在，但内容中没有任何配置命令，形同虚设。
httpd.conf文件分为以下3部分：
          Global Environment
          &#8216;Main&#8217; server configuration
          Virtual Hosts
下面将讲述这3部分的用法和与安全相关的注意点。
4.5.1.1  Global Environment
          ServerType standalone
用来指定Apache的启动方式：standalone和inetd。standalone模式是Apache独立运行，也是默认的启动方式。inetd模式是守护进程监听http的连接请求才启动httpd进程，请求完毕后就结束httpd进程，这样服务器负担很重。
          ServerRoot &#8220;/etc/httpd&#8221;
Apache的目录，此处是存放配置、出错记录、日志文件的根目录。目录后面不要加“/”字符。
          LockFile /var/lock/httpd.lock
保留默认值，不要更改。
          PidFile /var/run/httpd.pid
指定记录Apache的父进程id的文件名及路径。
          ScoreBoard /var/run/httpd.scoreboard
指定用于储存服务器进程处理信息的文件名和路径。
          #ResourceConfig conf/srm.conf
          #AccessConfig conf/access.conf
在标准的配置中，服务器启动时会处理这两个文件。因为现在的Apache只使用httpd.conf文件，摒弃了srm.conf和access.conf文件，所以这两行用“#”注释掉。
           Timeout 300
设置超时时间。如果远程客户端超过300秒还没连上Apache Server，或者Apache Server超过300秒没有传送字节给客户端，就立即断开连接。
           KeepAlive On
KeepAlive允许客户端的每个连接有多个请求，设为Off时此项无效。
           MaxKeepAliveRequests 100
设置每次连接期间所允许的最大请求数目。设为0时表示允许无限制数目。设置数字越大，则服务器性能越高。
           KeepAliveTimeout 15
设置等待同一个客户端的同一个连接发出下一个连接请求超过一定的时间就断线。
           MinSpareServers 5
          MaxSpareServers 20
设置最小的闲置服务处理程序的数目和最大的闲置服务处理程序的数目。如果实际数目少于MinSpareServers，则将增加处理程序；反之，如果实际数目超过MaxSpareServers，一些多余的处理程序将被杀掉。
           StartServers 8
设置启动并初始化后启动服务进程的数目。
           MaxClient 150
设置服务运行的总数量。一旦达到此数目，新来的客户端就被拒绝，所以该限制数目不能设得太小。
           MaxRequestsPerChild 100
设置每个子程序处理结果前的要求数目，设为0表示不限制。
           #Listen 3000
#Listen 12.34.56.78:80
Listen 80
设置Apache监听的连接端口或IP地址及端口，默认是80。
           #BindAddress *
该选项用来支持虚拟主机，并告知服务器监听哪个IP地址。可以使用“*”，或具体的IP地址和完整的域名。
           [...]]]></description>
		<wfw:commentRss>http://www.chentaoqian.com/archives/188/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache中如何使用ErrorDocument标签设定统一的错误页面</title>
		<link>http://www.chentaoqian.com/archives/186</link>
		<comments>http://www.chentaoqian.com/archives/186#comments</comments>
		<pubDate>Sat, 06 Jun 2009 10:24:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[errorDocument]]></category>

		<guid isPermaLink="false">http://www.chentaoqian.com/?p=186</guid>
		<description><![CDATA[在Linux上安装了Apache以后，想将apache所有的404错误转发到一个统一的错误页面，参考apache的用户手册后在httpd.conf加了如下一行：
ErrorDocument 404 /missing.html
重启apache以后在地址栏里故意输入了一个不存在的页面，发现IE并没有打开missing.html页面，设置没起作用。今天在网上搜索了一下，终于知道原因，这是IE里的一个设置，IE里有一个选项“显示友好的HTTP错误信息”，默认是选中的，这样错误文件大于512个字节才会被显示。打开apache的日志文件access_log，可以看到404错误的响应只有459个字节，因此IE没有显示，解决的方法就是关掉IE的这个选项，或者重写一个大一点的错误页面。
选项位置：
工具－》Internet选项－》高级－》显示友好的HTTP错误信息
另外我在firefox里也试了一下，可以正常显示自定义的错误页面，说明firefox没有开这样的选项。
]]></description>
		<wfw:commentRss>http://www.chentaoqian.com/archives/186/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

