<?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>baalchina &#187; 404</title>
	<atom:link href="http://www.baalchina.net/tag/404/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.baalchina.net</link>
	<description>baalchina技术日志</description>
	<lastBuildDate>Tue, 27 Sep 2011 07:12:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Discuz 7.2的一个很无语的404问题&#8211;没有头像，就是404！</title>
		<link>http://www.baalchina.net/2009/12/discuz-avatar-404-error/</link>
		<comments>http://www.baalchina.net/2009/12/discuz-avatar-404-error/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 06:29:30 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[Comsenz]]></category>
		<category><![CDATA[Web应用]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[Discuz]]></category>

		<guid isPermaLink="false">http://www.baalchina.net/2009/12/discuz-avatar-404-error/</guid>
		<description><![CDATA[今天看服务器，发现一堆404，都是请求头像的...日志巨大无比... 
然后找了一番，发现是没有头像的会员，dz会自动给他一个默认头像，但是问题在于他还会去请求一个middle大小的头像，显然这个头像是不存在的，于是404啊404....大量无谓的错误日志，塞满了我可怜的磁盘空间... 
打个比方，这个帖子：http://www.discuz.net/thread-1400422-1-1.html
第一个用户的uid是http://www.discuz.net/space.php?uid=1242584，可以查看这个帖子的源代码，124行： 
&#60;div class=&#34;avatar&#34; onmouseover=&#34;showauthor(this, 'userinfo11675894')&#34;&#62;&#60;a href=&#34;space.php?uid=1242584&#34; target=&#34;_blank&#34;&#62;&#60;img src=&#34;http://uc.discuz.net/data/avatar/001/24/25/84_avatar_middle.jpg&#34; onerror=&#34;this.onerror=null;this.src='http://uc.discuz.net/images/noavatar_middle.gif'&#34; /&#62;&#60;/a&#62;&#60;/div&#62; 

复制代码   注意他请求了 
&#160;http://uc.discuz.net/data/avatar/001/24/25/84_avatar_middle.jpg

复制代码   这个文件，当然，这个文件是不存在的... 
官方可以自己看看你们的nginx日志...看看是不是大量的404... 
首先，404增加了无谓的错误日志大小，其次，这种请求肯定会消耗磁盘的，消耗系统资源的....
]]></description>
			<content:encoded><![CDATA[<p>今天看服务器，发现一堆404，都是请求头像的...日志巨大无比... </p>
<p>然后找了一番，发现是没有头像的会员，dz会自动给他一个默认头像，但是问题在于他还会去请求一个middle大小的头像，显然这个头像是不存在的，于是404啊404....大量无谓的错误日志，塞满了我可怜的磁盘空间... </p>
<p>打个比方，这个帖子：<a href="http://www.discuz.net/thread-1400422-1-1.html">http://www.discuz.net/thread-1400422-1-1.html</a></p>
<p>第一个用户的uid是http://www.discuz.net/space.php?uid=1242584，可以查看这个帖子的源代码，124行： </p>
<blockquote><p>&lt;div class=&quot;avatar&quot; onmouseover=&quot;showauthor(this, 'userinfo11675894')&quot;&gt;&lt;a href=&quot;space.php?uid=1242584&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;<a href="http://uc.discuz.net/data/avatar/001/24/25/84_avatar_middle.jpg&quot;">http://uc.discuz.net/data/avatar/001/24/25/84_avatar_middle.jpg&quot;</a> onerror=&quot;this.onerror=null;this.src='<a href="http://uc.discuz.net/images/noavatar_middle.gif'&quot;">http://uc.discuz.net/images/noavatar_middle.gif'&quot;</a> /&gt;&lt;/a&gt;&lt;/div&gt; </p>
</blockquote>
<p>复制代码   <br />注意他请求了 </p>
<blockquote><p>&#160;<a href="http://uc.discuz.net/data/avatar/001/24/25/84_avatar_middle.jpg">http://uc.discuz.net/data/avatar/001/24/25/84_avatar_middle.jpg</a></p>
</blockquote>
<p>复制代码   <br />这个文件，当然，这个文件是不存在的... </p>
<p>官方可以自己看看你们的nginx日志...看看是不是大量的404... </p>
<p>首先，404增加了无谓的错误日志大小，其次，这种请求肯定会消耗磁盘的，消耗系统资源的....</p>
]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2009/12/discuz-avatar-404-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

