<?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>@yuehei&#039;s blog &#187; platform</title>
	<atom:link href="http://yuehei.37net.com/category/platform/feed/" rel="self" type="application/rss+xml" />
	<link>http://yuehei.37net.com</link>
	<description>记点东西</description>
	<lastBuildDate>Mon, 12 Dec 2011 10:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FastDFS</title>
		<link>http://yuehei.37net.com/2011/07/fastdfs/</link>
		<comments>http://yuehei.37net.com/2011/07/fastdfs/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 03:53:18 +0000</pubDate>
		<dc:creator>yuehei</dc:creator>
				<category><![CDATA[platform]]></category>

		<guid isPermaLink="false">http://yuehei.37net.com/?p=169</guid>
		<description><![CDATA[fastdfs是一个分布式的文件存储系统， 项目主页：http://code.google.com/p/fastdfs/ 支持论坛：http://bbs.chinaunix.net/forum-240-1.html 测试了一下，发现很好用，优点： 1，简单：tracker做负载均衡，storage存储数据。 2，良好的横行和纵向扩展：增加group即可实现容量扩充，增加group内的storage即可实现性能扩充 3，节省成本：数据不分块存储，前端无须再加一层缓存，直接将storage当做web server来使用 4，良好的灾备：不需要raid，group内的storage存储相同的数据 5，持续的的更新，作者很用心 配置文件：http://bbs.chinaunix.net/thread-1941456-1-1.html]]></description>
			<content:encoded><![CDATA[<p>fastdfs是一个分布式的文件存储系统，</p>
<p>项目主页：http://code.google.com/p/fastdfs/</p>
<p>支持论坛：http://bbs.chinaunix.net/forum-240-1.html</p>
<p>测试了一下，发现很好用，优点：</p>
<p>1，简单：tracker做负载均衡，storage存储数据。</p>
<p>2，良好的横行和纵向扩展：增加group即可实现容量扩充，增加group内的storage即可实现性能扩充</p>
<p>3，节省成本：数据不分块存储，前端无须再加一层缓存，直接将storage当做web server来使用</p>
<p>4，良好的灾备：不需要raid，group内的storage存储相同的数据</p>
<p>5，持续的的更新，作者很用心</p>
<p>配置文件：http://bbs.chinaunix.net/thread-1941456-1-1.html</p>
]]></content:encoded>
			<wfw:commentRss>http://yuehei.37net.com/2011/07/fastdfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx下wordpress的rewrite</title>
		<link>http://yuehei.37net.com/2010/10/nginx_wordpress_rewrite/</link>
		<comments>http://yuehei.37net.com/2010/10/nginx_wordpress_rewrite/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 04:26:21 +0000</pubDate>
		<dc:creator>yuehei</dc:creator>
				<category><![CDATA[platform]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://yuehei.37net.com/?p=126</guid>
		<description><![CDATA[国庆前买了 linode 的VPS，算是edong撤走了，不用再去照相了，照相这种备案方式和以前BBS专项备案一样，没有什么操作性，迟早也要取消的。以前用edong vps，跑的是nginx+apache，这次直接换成nginx+spawn-fcgi。 # BEGIN WordPress &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] &#60;/IfModule&#62; # END WordPress 上面是推荐的rewrite规则，但是这样规则会将不存在的图片,css等文件也都转发到index.php，这些文件应该报个404的。 #现在nginx上使用的rewrite server { server_name yuehei.37net.com; &#160; access_log /var/log/nginx/yuehei_37net_com_access.log main; error_log /var/log/nginx/yuehei_37net_com_error.log info; &#160; root /data/html/37net.com/yuehei; index index.html index.htm index.php; &#160; error_page 403 =200 /403.html; location = /403.html [...]]]></description>
			<content:encoded><![CDATA[<p>国庆前买了 <a href="http://www.linode.com/" target="_blank">linode</a> 的VPS，算是edong撤走了，不用再去照相了，照相这种备案方式和以前BBS专项备案一样，没有什么操作性，迟早也要取消的。以前用edong vps，跑的是nginx+apache，这次直接换成nginx+spawn-fcgi。</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># BEGIN WordPress</span>
&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_rewrite.c&gt;
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span>
<span style="color: #00007f;">RewriteBase</span> /
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-f
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-d
<span style="color: #00007f;">RewriteRule</span> . /index.php [L]
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;
<span style="color: #adadad; font-style: italic;"># END WordPress</span></pre></div></div>

<p>上面是推荐的rewrite规则，但是这样规则会将不存在的图片,css等文件也都转发到index.php，这些文件应该报个404的。</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">    <span style="color: #adadad; font-style: italic;">#现在nginx上使用的rewrite</span>
    server {
        server_name yuehei.37net.com;
&nbsp;
        access_log   /var/log/nginx/yuehei_37net_com_access.log main;
        error_log     /var/log/nginx/yuehei_37net_com_error.log info;
&nbsp;
        root  /data/html/37net.com/yuehei;
        index index.html index.htm index.php;
&nbsp;
        error_page  <span style="color: #ff0000;">403</span>  =<span style="color: #ff0000;">200</span> /<span style="color: #ff0000;">403</span>.html;
        location = /<span style="color: #ff0000;">403</span>.html {
            root /data/html;
        }
        error_page  <span style="color: #ff0000;">404</span>  =<span style="color: #ff0000;">200</span> /<span style="color: #ff0000;">404</span>.html;
        location = /<span style="color: #ff0000;">404</span>.html {
            root /data/html;
        }
&nbsp;
        location / {
            if (!-e $request_filename) {
                rewrite ^(.*)$ /index.php last;
                break;
            }
        }
&nbsp;
        location ~ \.(gif|jpg|jpeg|png|css|js)$ {
            expires 365d;
        }
&nbsp;
        location ~ \.php$ {
            <span style="color: #00007f;">include</span> /etc/nginx/fastcgi_params;
        }
    }</pre></div></div>

<p>测试一下: <a href="http://yuehei.37net.com/test_test.png">http://yuehei.37net.com/test_test.png</a>  报的是404了</p>
]]></content:encoded>
			<wfw:commentRss>http://yuehei.37net.com/2010/10/nginx_wordpress_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在vps主机配置awstats日志数据分析软件</title>
		<link>http://yuehei.37net.com/2010/02/awstats/</link>
		<comments>http://yuehei.37net.com/2010/02/awstats/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 15:44:05 +0000</pubDate>
		<dc:creator>yuehei</dc:creator>
				<category><![CDATA[platform]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[edong]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://yuehei.37net.com/?p=83</guid>
		<description><![CDATA[盘今的主机，是我用过最烂的，虽然客服很尽责，但是速度已经不能用慢来形容，ping可以ping，网页只是偶尔能打开。买了一下E动VPS，界面很方便，速度还不错，稳定性有待观察。 我是按装这个【文档】来进行awstats日志的配置。有一些写的不详细： 1. 第（2）步我改成了虚拟主机 &#60;VirtualHost *:80&#62; Alias /awstats/icon/ /var/www/awstats/icon/ Alias /awstats/ /var/www/awstats/ &#160; &#60;Directory /var/www/awstats/&#62; DirectoryIndex index.html Options ExecCGI order deny,allow allow from all &#60;/Directory&#62; &#60;/VirtualHost&#62; 打开浏览器，如果看到是pl的源代码，在apache的配置文件中增加 AddHandler cgi-script .cgi .pl 2. 如果显示的界面是英文，则在第（4）部中，将LANG=“auto” 改成 LANG=”cn”]]></description>
			<content:encoded><![CDATA[<p>盘今的主机，是我用过最烂的，虽然客服很尽责，但是速度已经不能用慢来形容，ping可以ping，网页只是偶尔能打开。买了一下E动VPS，界面很方便，速度还不错，稳定性有待观察。</p>
<p>我是按装这个<a href="http://vps.15099.net/2008/12/configure-awstats-log-analyze-software-in-vps-hosting-183.html" target="_blank">【文档】</a>来进行awstats日志的配置。有一些写的不详细：</p>
<p>1. 第（2）步我改成了虚拟主机</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">VirtualHost</span> *:<span style="color: #ff0000;">80</span>&gt;
  <span style="color: #00007f;">Alias</span> /awstats/icon/ /var/www/awstats/icon/
  <span style="color: #00007f;">Alias</span> /awstats/ /var/www/awstats/
&nbsp;
  &lt;<span style="color: #000000; font-weight:bold;">Directory</span> /var/www/awstats/&gt;
    <span style="color: #00007f;">DirectoryIndex</span> index.html
    <span style="color: #00007f;">Options</span> ExecCGI
    <span style="color: #00007f;">order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
    <span style="color: #00007f;">allow</span> from <span style="color: #0000ff;">all</span>
  &lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;</pre></div></div>

<p>打开浏览器，如果看到是pl的源代码，在apache的配置文件中增加</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddHandler</span> cgi-<span style="color: #00007f;">script</span> .cgi .pl</pre></div></div>

<p>2. 如果显示的界面是英文，则在第（4）部中，将LANG=“auto” 改成 LANG=”cn”</p>
]]></content:encoded>
			<wfw:commentRss>http://yuehei.37net.com/2010/02/awstats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

