<?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>阿乐的博客 &#187; apache</title>
	<atom:link href="http://ale.net.cn/blog/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://ale.net.cn/blog</link>
	<description>没有句号的梦想</description>
	<lastBuildDate>Wed, 22 Dec 2010 14:56:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>apache设置文件缓存</title>
		<link>http://ale.net.cn/blog/2010/09/apache%e8%ae%be%e7%bd%ae%e6%96%87%e4%bb%b6%e7%bc%93%e5%ad%98/</link>
		<comments>http://ale.net.cn/blog/2010/09/apache%e8%ae%be%e7%bd%ae%e6%96%87%e4%bb%b6%e7%bc%93%e5%ad%98/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 03:48:06 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[expires]]></category>
		<category><![CDATA[page speed]]></category>
		<category><![CDATA[缓存]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/?p=129</guid>
		<description><![CDATA[使用google的page speed分析，有个leverage browser caching条，说是么有设置缓存有效期。The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources。
网上搜到相关设置说明。
利用mod_expires模块为文件增加Expires
加载mod_expires模块，在配置文件中增加：
LoadModule expires_module modules/mod_expires.so
可在.htaccess文件中添加如下内容
&#60;IfModule mod_expires.c&#62;
ExpiresActive on
#默认所有文件缓存时间设置为300秒
ExpiresDefault a300
#html,plain-text缓存300秒
ExpiresByType text/html a300
ExpiresByType text/plain a300
#javascript缓存一个小时
ExpiresByType application/x-javascript &#8220;access plus 2 hours&#8221;
#css缓存一个天
ExpiresByType text/css &#8220;access plus 2 days&#8221;
#图标文件缓存30天
ExpiresByType image/x-icon &#8220;access plus 1 month&#8221;
#image类缓存一个星期
ExpiresByType image/jpeg &#8220;access plus 1 week&#8221;
ExpiresByType [...]]]></description>
			<content:encoded><![CDATA[<p>使用google的page speed分析，有个leverage browser caching条，说是么有设置缓存有效期。The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources。</p>
<p>网上搜到相关设置说明。</p>
<p><strong>利用mod_expires模块为文件增加Expires</strong></p>
<p>加载mod_expires模块，在配置文件中增加：</p>
<p>LoadModule expires_module modules/mod_expires.so</p>
<p>可在.htaccess文件中添加如下内容</p>
<p>&lt;IfModule mod_expires.c&gt;<br />
ExpiresActive on</p>
<p>#默认所有文件缓存时间设置为300秒<br />
ExpiresDefault a300</p>
<p>#html,plain-text缓存300秒<br />
ExpiresByType text/html a300<br />
ExpiresByType text/plain a300</p>
<p>#javascript缓存一个小时<br />
ExpiresByType application/x-javascript &#8220;access plus 2 hours&#8221;</p>
<p>#css缓存一个天<br />
ExpiresByType text/css &#8220;access plus 2 days&#8221;</p>
<p>#图标文件缓存30天<br />
ExpiresByType image/x-icon &#8220;access plus 1 month&#8221;</p>
<p>#image类缓存一个星期<br />
ExpiresByType image/jpeg &#8220;access plus 1 week&#8221;<br />
ExpiresByType image/gif &#8220;access plus 1 week&#8221;<br />
ExpiresByType image/png &#8220;access plus 1 week&#8221;</p>
<p>#flash/pdf缓存一个星期<br />
ExpiresByType application/x-shockwave-flash &#8220;access plus 1 week&#8221;<br />
ExpiresByType video/x-flv &#8220;access plus 1 week&#8221;<br />
ExpiresByType application/pdf &#8220;access plus 1 week&#8221;</p>
<p>&lt;/IfModule&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2010/09/apache%e8%ae%be%e7%bd%ae%e6%96%87%e4%bb%b6%e7%bc%93%e5%ad%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>httpd: Could not reliably determine the server&#8217;s fully qualified domain name</title>
		<link>http://ale.net.cn/blog/2010/02/httpd-could-not-reliably-determine-the-servers-fully-qualified-domain-name/</link>
		<comments>http://ale.net.cn/blog/2010/02/httpd-could-not-reliably-determine-the-servers-fully-qualified-domain-name/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 10:29:45 +0000</pubDate>
		<dc:creator>ale</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://ale.net.cn/blog/?p=106</guid>
		<description><![CDATA[httpd: Could not reliably determine the server&#8217;s fully qualified domain name , using *.*.*.* for Server Name
在windows下安装好apache服务器后，出现上面的错误，
把/conf/httpd.conf文件的#ServerName 前的#去掉，如下，星号部分改为当前服务器的IP地址即可。
ServerName *.*.*.*:80
]]></description>
			<content:encoded><![CDATA[<p>httpd: <span>Could</span> <span>not</span> <span>reliably</span> <span>determine</span> <span>the</span> <span>server&#8217;s</span> <span>fully</span> qualified domain name , using *.*.*.* for Server Name</p>
<p>在windows下安装好apache服务器后，出现上面的错误，</p>
<p>把/conf/httpd.conf文件的#ServerName 前的#去掉，如下，星号部分改为当前服务器的IP地址即可。</p>
<p>ServerName *.*.*.*:80</p>
]]></content:encoded>
			<wfw:commentRss>http://ale.net.cn/blog/2010/02/httpd-could-not-reliably-determine-the-servers-fully-qualified-domain-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

