<?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; Server</title>
	<atom:link href="http://shuai.be/topics/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://shuai.be</link>
	<description></description>
	<lastBuildDate>Thu, 03 May 2012 15:42:00 +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>Godaddy 2011年有效优惠码收集（域名注册，主机）</title>
		<link>http://shuai.be/archives/godaddy-valid-coupon-2011/</link>
		<comments>http://shuai.be/archives/godaddy-valid-coupon-2011/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 03:57:14 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Domain]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[coupono]]></category>
		<category><![CDATA[godaddy]]></category>

		<guid isPermaLink="false">http://shuai.be/?p=2421</guid>
		<description><![CDATA[大家知道，Godaddy经常会出限时或限量的优惠码，但很就会失效了。下面是一些2011年仍有效的长期优惠码，前几天我买了个.net，验证有效，其它的可供参考。 域名注册： FAN3 - .COM域名65折（合$7.49） FUN3 - .COM域名65折 FAN749 - .ORG域名5折 (合$7.49) YES749 - $7.49注册.NET域名（2011-10-09亲测有效） GAM749 - $7.49注册.BIZ域名 MIN2499 - $24.99注册.CO MIN1 - .CO域名9折 SPN1 - 所有订单9折 SPN2 - $30以上订单减$5 HITCH2 - $30以上订单或.TV域名注册/续费减$5 按订单金额折扣: $30以上订单：MIN2 - 减$5 $40以上订单：YESOFF - 减$10 $75以上订单：85折 MIN1 - 所有订单9折 主机: RUSH20 - 1年以上主机服务8折 MIN1 - 月付9折 SSL: YESSSL - $12.99注册SSL账户 [...]]]></description>
			<content:encoded><![CDATA[<p>大家知道，Godaddy经常会出限时或限量的优惠码，但很就会失效了。下面是一些2011年仍有效的长期优惠码，前几天我买了个.net，验证有效，其它的可供参考。<span id="more-2421"></span></p>
<p>域名注册：</p>
<blockquote><p>FAN3 - .COM域名65折（合$7.49）<br />
FUN3 - .COM域名65折<br />
FAN749 - .ORG域名5折 (合$7.49)<br />
YES749 - $7.49注册.NET域名（2011-10-09亲测有效）<br />
GAM749 - $7.49注册.BIZ域名<br />
MIN2499 - $24.99注册.CO<br />
MIN1 - .CO域名9折<br />
SPN1 - 所有订单9折<br />
SPN2 - $30以上订单减$5<br />
HITCH2 - $30以上订单或.TV域名注册/续费减$5</p></blockquote>
<p>按订单金额折扣:</p>
<blockquote><p>$30以上订单：MIN2 - 减$5<br />
$40以上订单：YESOFF - 减$10<br />
$75以上订单：85折<br />
MIN1 - 所有订单9折</p></blockquote>
<p>主机:</p>
<blockquote><p>RUSH20 - 1年以上主机服务8折<br />
MIN1 - 月付9折</p></blockquote>
<p>SSL:</p>
<blockquote><p>YESSSL - $12.99注册SSL账户 (平时$30)</p></blockquote>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/godaddy-domain-dns-settings/' rel='bookmark' title='GoDaddy域名DNS设置'>GoDaddy域名DNS设置</a></li>
<li><a href='http://shuai.be/archives/remove-godaddy-ads-safely/' rel='bookmark' title='最安全的Godaddy免费空间去广告方法（已修正）'>最安全的Godaddy免费空间去广告方法（已修正）</a></li>
<li><a href='http://shuai.be/archives/shuai-dot-be/' rel='bookmark' title='新年新气象！博客正式启用新域名shuai.be'>新年新气象！博客正式启用新域名shuai.be</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/godaddy-valid-coupon-2011/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PhotonVPS现已原生支持IPv6！</title>
		<link>http://shuai.be/archives/photonvps-native-ipv6/</link>
		<comments>http://shuai.be/archives/photonvps-native-ipv6/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 14:16:54 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[photonvps]]></category>

		<guid isPermaLink="false">http://shuai.be/archives/photonvps-native-ipv6/</guid>
		<description><![CDATA[我用的vps服务提供商PhotonVPS早在去年底就说要增加ipv6支持，不过一直没收到他们的通知邮件。今天ifconfig查了一下，已经有ipv6地址了，ping6 ipv6.google.com也ping通了，说明vps已经原生支持ipv6。 记得上次编译nginx时没有添加ipv6支持，现在需要重编译一下，顺便升一下级。 wget http://nginx.org/download/nginx-0.8.54.tar.gz tar -xzvf nginx-0.8.54.tar.gz cd nginx-0.8.54 ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ld-opt=-ltcmalloc_minimal --with-ipv6 vi auto/cc/gcc #将CFLAGS=“$CFLAGS -g”注释掉，去掉debug，编译出的文件更小 make #这里只make，不用make install! 编译完后，在objs目录下会生成nginx可执行文件，先将原nginx文件备份 mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak 然后 cp objs/nginx /usr/local/nginx/sbin/ killall nginx #干掉nginx进程 /usr/local/nginx/sbin/nginx #重新启动nginx 同时要在server段是监听ipv6的80端口 server { listen 80; 监听ipv4 80端口 listen [::]:80 ipv6only=on; 一定要加上后面这句，否则在监听ipv6时ipv4也默认被监听了，在nginx启动时会报错[emerg]: bind() to [::]:80 failed (98: [...]]]></description>
			<content:encoded><![CDATA[<p>我用的vps服务提供商<a href="http://www.photonvps.com/" target="_blank" onclick="return redirect('http://www.photonvps.com/billing/aff.php?aff=679')">PhotonVPS</a>早在去年底就说要增加<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/ipv6/" title="查看 ipv6 中的全部文章" target="_blank">ipv6</a></span>支持，不过一直没收到他们的通知邮件。今天ifconfig查了一下，已经有<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/ipv6/" title="查看 ipv6 中的全部文章" target="_blank">ipv6</a></span>地址了，ping6 <span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/ipv6/" title="查看 ipv6 中的全部文章" target="_blank">ipv6</a></span>.google.com也ping通了，说明vps已经原生支持ipv6。</p>
<p><span id="more-2386"></span></p>
<p>记得上次编译<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span>时没有添加ipv6支持，现在需要重编译一下，顺便升一下级。</p>
<blockquote><p>wget <a href="http://nginx.org/download/nginx-0.8.54.tar.gz">http://nginx.org/download/nginx-0.8.54.tar.gz</a><br />
tar -xzvf <span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span>-0.8.54.tar.gz<br />
cd <span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span>-0.8.54<br />
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ld-opt=-ltcmalloc_minimal <span style="color: #ff0000;">--with-ipv6</span><br />
vi auto/cc/gcc #将CFLAGS=“$CFLAGS -g”注释掉，去掉debug，编译出的文件更小<br />
make #这里只make，不用make install!<br />
编译完后，在objs目录下会生成nginx可执行文件，先将原nginx文件备份<br />
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak 然后<br />
cp objs/nginx /usr/local/nginx/sbin/<br />
killall nginx #干掉nginx进程<br />
/usr/local/nginx/sbin/nginx #重新启动nginx</p></blockquote>
<p>同时要在server段是监听ipv6的80端口</p>
<blockquote><p>server {<br />
listen 80; 监听ipv4 80端口<br />
listen [::]:80 <span style="color: #ff0000;">ipv6only=on</span>; 一定要加上后面这句，否则在监听ipv6时ipv4也默认被监听了，在nginx启动时会报错[emerg]: bind() to [::]:80 failed (98: Address already in use)，当然这里要绑定特定的ipv6地址也是可以的<br />
server_name ipv6.xx.com;<br />
… }</p></blockquote>
<p>再次按上面方法重启nginx，然后解析域名AAAA记录到ipv6地址，搞定！</p>
<blockquote><p>现在访问<span class="btn"><a href="http://shuai.be/">Blog of Jones</a></span>，只要网络支持ipv6会默认使用ipv6方式访问了！</p></blockquote>
<p>PS: WordPress默认会把半角转换为全角符号，比如把 -- 转换为 –，这样使正常的代码显示错误，解决方法如下：</p>
<blockquote><p>修改主题theme下的主题函数functions.php文件，在里面的头部加入下面的代码：</p>
<p>&lt;?php remove_filter('the_content', 'wptexturize'); ?&gt;</p></blockquote>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/nginx-vsftpd-restart/' rel='bookmark' title='VPS主机中最简单的Nginx和vsFTPd重启命令'>VPS主机中最简单的Nginx和vsFTPd重启命令</a></li>
<li><a href='http://shuai.be/archives/nginx-default-server/' rel='bookmark' title='在nginx中配置ip直接访问的默认站点'>在nginx中配置ip直接访问的默认站点</a></li>
<li><a href='http://shuai.be/archives/php-asp-jsp-301-redirection/' rel='bookmark' title='php asp jsp .htaccess nginx的301跳转（永久重定向）方法'>php asp jsp .htaccess nginx的301跳转（永久重定向）方法</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/photonvps-native-ipv6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>在nginx中配置ip直接访问的默认站点</title>
		<link>http://shuai.be/archives/nginx-default-server/</link>
		<comments>http://shuai.be/archives/nginx-default-server/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 11:15:36 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://shuai.be/archives/nginx-default-server/</guid>
		<description><![CDATA[在nginx中，每个站点都是由一个server段定义的，这里面设定了监听的ip和端口，站点的域名，根目录等信息。但一般来说vps主机上每个ip上会对应几个不同的站点。这样就会出现一个问题，直接访问这个ip的话，访问的会是哪个站点？ 答案是这样的：在Listen ip:port; 这个指令行中，有一个参数default，指定了它后，这个server段就会是这个ip的默认站点；如果没有这个参数，那么默认ip直接访问的是nginx.conf中出现的第一个server段对应的站点。 server{ listen: 127.0.0.1:80 default; server_name shuai.be; ... } 延伸阅读： PhotonVPS现已原生支持IPv6！ php asp jsp .htaccess nginx的301跳转（永久重定向）方法 VPS主机中最简单的Nginx和vsFTPd重启命令]]></description>
			<content:encoded><![CDATA[<p>在<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span>中，每个站点都是由一个server段定义的，这里面设定了监听的<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/ip/" title="查看 ip 中的全部文章" target="_blank">ip</a></span>和端口，站点的域名，根目录等信息。但一般来说vps主机上每个<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/ip/" title="查看 ip 中的全部文章" target="_blank">ip</a></span>上会对应几个不同的站点。这样就会出现一个问题，直接访问这个<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/ip/" title="查看 ip 中的全部文章" target="_blank">ip</a></span>的话，访问的会是哪个站点？</p>
<p> <span id="more-2344"></span></p>
<p>答案是这样的：在Listen ip:port; 这个指令行中，有一个参数default，指定了它后，这个server段就会是这个ip的默认站点；如果没有这个参数，那么默认ip直接访问的是<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span>.conf中出现的第一个server段对应的站点。</p>
<blockquote>
<p>server{      <br />listen: 127.0.0.1:80 <strong>default</strong>;       <br />server_name shuai.be;       <br />...       <br />}
</p>
</blockquote>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/photonvps-native-ipv6/' rel='bookmark' title='PhotonVPS现已原生支持IPv6！'>PhotonVPS现已原生支持IPv6！</a></li>
<li><a href='http://shuai.be/archives/php-asp-jsp-301-redirection/' rel='bookmark' title='php asp jsp .htaccess nginx的301跳转（永久重定向）方法'>php asp jsp .htaccess nginx的301跳转（永久重定向）方法</a></li>
<li><a href='http://shuai.be/archives/nginx-vsftpd-restart/' rel='bookmark' title='VPS主机中最简单的Nginx和vsFTPd重启命令'>VPS主机中最简单的Nginx和vsFTPd重启命令</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/nginx-default-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPS主机中最简单的Nginx和vsFTPd重启命令</title>
		<link>http://shuai.be/archives/nginx-vsftpd-restart/</link>
		<comments>http://shuai.be/archives/nginx-vsftpd-restart/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 06:59:16 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[photonvps]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://shuai.be/archives/nginx-vsftpd-restart/</guid>
		<description><![CDATA[前几天趁PhotonVPS打折买了一个xen版vps，256M内存。第一个月才2.49美刀很实惠啊，呵呵，先玩玩呗。 Linux命令几乎是从头学起，目前稍微有些了解了。下面是vps配置过程中常用的两个重启命令备忘： Nginx重启：#/usr/local/nginx/sbin/nginx -s  reload Nginx完全重启： 杀掉所有Nginx进程：#killall nginx 重新启动Nginx服务：#/usr/local/nginx/sbin/nginx vsFTPd重启：#service vsftpd restart 延伸阅读： PhotonVPS现已原生支持IPv6！ php asp jsp .htaccess nginx的301跳转（永久重定向）方法 测试服务器网络速度的几个参数和方法]]></description>
			<content:encoded><![CDATA[<p>前几天趁<a href="http://zi.mu/photonvps" target="_blank">PhotonVPS</a>打折买了一个xen版<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/vps/" title="查看 vps 中的全部文章" target="_blank">vps</a></span>，256M内存。第一个月才2.49美刀很实惠啊，呵呵，先玩玩呗。<br />
Linux命令几乎是从头学起，目前稍微有些了解了。下面是<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/vps/" title="查看 vps 中的全部文章" target="_blank">vps</a></span>配置过程中常用的两个重启命令备忘：</p>
<p>Nginx重启：#/usr/local/<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span>/sbin/<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span> -s  reload<br />
Nginx完全重启：</p>
<blockquote><p>杀掉所有Nginx进程：#killall <span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/nginx/" title="查看 nginx 中的全部文章" target="_blank">nginx</a></span><br />
重新启动Nginx服务：#/usr/local/nginx/sbin/nginx</p></blockquote>
<p>vsFTPd重启：#service <span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/vsftpd/" title="查看 vsftpd 中的全部文章" target="_blank">vsftpd</a></span> restart</p>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/photonvps-native-ipv6/' rel='bookmark' title='PhotonVPS现已原生支持IPv6！'>PhotonVPS现已原生支持IPv6！</a></li>
<li><a href='http://shuai.be/archives/php-asp-jsp-301-redirection/' rel='bookmark' title='php asp jsp .htaccess nginx的301跳转（永久重定向）方法'>php asp jsp .htaccess nginx的301跳转（永久重定向）方法</a></li>
<li><a href='http://shuai.be/archives/check-server-network/' rel='bookmark' title='测试服务器网络速度的几个参数和方法'>测试服务器网络速度的几个参数和方法</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/nginx-vsftpd-restart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>测试服务器网络速度的几个参数和方法</title>
		<link>http://shuai.be/archives/check-server-network/</link>
		<comments>http://shuai.be/archives/check-server-network/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 03:28:40 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://shuai.be/archives/check-server-network/</guid>
		<description><![CDATA[在选择不同的服务器或vps供应商时大家可能会比较关心服务器机房的网速情况。下面是我自己的一些看法： 服务器测速主要包括以下几个方面，1. 通过ping测试服务器响应速度 2. 通过tracert来跟踪路由节点 3. 页面载入速度，下载或上传速度（主要测试带宽）。 1. ping检测服务器响应速度 本地检测：开始－cmd－ping www.google.com 远程检测：国内、国外 结果数字越小代表响应速度越快 2. tracert跟踪路由节点 本地检测：开始－cmd－tracert www.google.com 远程检测：国内、国外 路由节点当然也是越少越好 3. 页面载入速度和下载上传速度 本地检测：Firefox插件Firebug开启网络功能，即可看到页面载入速度 远程检测：国内、国外 最后如果服务器提供测试下载文件，可以单线程下载测试文件下载速度。 页面载入时间越短，下载速度越快说明网络带宽越好 以上是本人拙见，高手请补充。 延伸阅读： VPS主机中最简单的Nginx和vsFTPd重启命令]]></description>
			<content:encoded><![CDATA[<p>在选择不同的服务器或<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/vps/" title="查看 vps 中的全部文章" target="_blank">vps</a></span>供应商时大家可能会比较关心服务器机房的网速情况。下面是我自己的一些看法：</p>
<p>服务器测速主要包括以下几个方面，1. 通过ping测试服务器响应速度 2. 通过tracert来跟踪路由节点 3. 页面载入速度，下载或上传速度（主要测试带宽）。</p>
<p>1. ping检测服务器响应速度</p>
<p> <span id="more-2334"></span><br />
<blockquote>
<p>本地检测：开始－cmd－ping www.google.com</p>
<p>远程检测：<a href="http://www.webkaka.com/Ping.aspx" target="_blank">国内</a>、<a href="http://www.just-ping.com/index.php" target="_blank">国外</a></p>
<p>结果数字越小代表响应速度越快</p>
</blockquote>
<p>2. tracert跟踪路由节点</p>
<blockquote><p>本地检测：开始－cmd－tracert www.google.com</p>
<p>远程检测：<a href="http://www.webkaka.com/Tracert.aspx" target="_blank">国内</a>、<a href="http://www.watchmouse.com/en/traceroute.php" target="_blank">国外</a></p>
<p>路由节点当然也是越少越好</p>
</blockquote>
<p>3. 页面载入速度和下载上传速度</p>
<blockquote><p>本地检测：Firefox插件Firebug开启网络功能，即可看到页面载入速度</p>
<p>远程检测：<a href="http://www.webkaka.com/webCheck.aspx" target="_blank">国内</a>、<a href="http://www.watchmouse.com/en/checkit.php" target="_blank">国外</a></p>
<p>最后如果服务器提供测试下载文件，可以单线程下载测试文件下载速度。</p>
<p>页面载入时间越短，下载速度越快说明网络带宽越好</p>
</blockquote>
<p>以上是本人拙见，高手请补充。</p>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/nginx-vsftpd-restart/' rel='bookmark' title='VPS主机中最简单的Nginx和vsFTPd重启命令'>VPS主机中最简单的Nginx和vsFTPd重启命令</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/check-server-network/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用.htaccess实现图片分类存放、统一读取</title>
		<link>http://shuai.be/archives/htaccess-image-classify/</link>
		<comments>http://shuai.be/archives/htaccess-image-classify/#comments</comments>
		<pubDate>Sat, 29 May 2010 09:01:35 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://shuai.be/?p=2281</guid>
		<description><![CDATA[今天把博客文章配图全部转移到godaddy免费空间里了。这样做不仅减少了主服务器的压力，也会提高页面载入速度（因为使用了cookie-free domain）。 转移到godaddy空间中，接下谈谈图片存放问题： 个人不喜欢将所有类型的图片放在同一文件夹中保存，因为看起来太烦乱。我的做法是将不同类型的图片分别放在不同的文件夹中（比如png图片，放在/png/目录下）。 图片的命名方面我也比较讲究。因为我使用别名式的固定链接，所以每篇文章的配图我都尽量命名为文章的别名加后缀名这样的格式。这样一来，就非常方便日后查找和管理，迁移也很方便。 图片存放好，怎样读取最方便呢？你当然可以直接按目录/文件名这样读取，不过如果手动输入的话，会比较费时间，也不酷（呵呵，我喜欢装酷）。我的想法是直接以以下URL如http://img.shuai.be/firefox.jpg来读取真实路径中的http://img.shuai.be/jpg/firefox.jpg。实现方法是使用强大的.htaccess对图片路径进行rewrite，下面我给出代码（哪里可以改，你懂的）： RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.(png&#124;jpg&#124;gif)$ /$2/$1.$2 [L] .htaccess文件放于图片根目录下，这样就可以实现图片的统一读取了！ 延伸阅读： 利用.htaccess将域名绑定到子目录 设置.htaccess支持图片防盗链 神奇的.htaccess]]></description>
			<content:encoded><![CDATA[<p>今天把博客文章配图全部转移到godaddy免费空间里了。这样做不仅减少了主服务器的压力，也会提高页面载入速度（因为使用了cookie-free domain）。<br />
转移到godaddy空间中，接下谈谈图片存放问题：<span id="more-2281"></span></p>
<blockquote>
<ol>
<li>个人不喜欢将所有类型的图片放在同一文件夹中保存，因为看起来太烦乱。我的做法是将不同类型的图片分别放在不同的文件夹中（比如png图片，放在/png/目录下）。</li>
<li>图片的命名方面我也比较讲究。因为我使用别名式的固定链接，所以每篇文章的配图我都尽量命名为文章的别名加后缀名这样的格式。这样一来，就非常方便日后查找和管理，迁移也很方便。</li>
</ol>
</blockquote>
<p>图片存放好，怎样读取最方便呢？你当然可以直接按目录/文件名这样读取，不过如果手动输入的话，会比较费时间，也不酷（呵呵，我喜欢装酷）。我的想法是直接以以下URL如http://img.shuai.be/firefox.jpg来读取真实路径中的http://img.shuai.be/jpg/firefox.jpg。实现方法是使用强大的<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/htaccess/" title="查看 .htaccess 中的全部文章" target="_blank">.htaccess</a></span>对图片路径进行rewrite，下面我给出代码（哪里可以改，你懂的）：</p>
<blockquote><p>RewriteEngine On<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.+)\.(png|jpg|gif)$ /$2/$1.$2 [L]</p></blockquote>
<p><span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/htaccess/" title="查看 .htaccess 中的全部文章" target="_blank">.htaccess</a></span>文件放于图片根目录下，这样就可以实现图片的统一读取了！</p>
<p style="text-align: center;"><a href="http://img.shuai.be/hta-image-classify-1.png" class="highslide-image" onclick="return hs.expand(this);"><img class="aligncenter" src="http://img.shuai.be/hta-image-classify-1.png" alt="" width="456" height="149" /></a></p>
<p style="text-align: center;"><a href="http://img.shuai.be/hta-image-classify-2.png" class="highslide-image" onclick="return hs.expand(this);"><img class="aligncenter" src="http://img.shuai.be/hta-image-classify-2.png" alt="" width="456" height="207" /></a></p>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/bind-domain-to-subdirectory-with-htaccess/' rel='bookmark' title='利用.htaccess将域名绑定到子目录'>利用.htaccess将域名绑定到子目录</a></li>
<li><a href='http://shuai.be/archives/htaccess-image-protection/' rel='bookmark' title='设置.htaccess支持图片防盗链'>设置.htaccess支持图片防盗链</a></li>
<li><a href='http://shuai.be/archives/magic-htaccess/' rel='bookmark' title='神奇的.htaccess'>神奇的.htaccess</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/htaccess-image-classify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux VPS主机备份数据常用SSH命令备忘</title>
		<link>http://shuai.be/archives/linux-ssh-commands/</link>
		<comments>http://shuai.be/archives/linux-ssh-commands/#comments</comments>
		<pubDate>Thu, 27 May 2010 02:37:37 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://shuai.be/?p=2231</guid>
		<description><![CDATA[打包解包： 打包当前目录下所有文件（不包含.htaccess等隐含文件）成xxx.tar.gz tar -czvf xxx.tar.gz * 打包当前目录下所有文件（包含.htaccess等隐含文件）成xxx.tar.gz，注意中间不是引号而是`，保存文件一定要保存到上级目录，要不连xxx.tar.gz本身也包含进去了 tar czvf - `find . -print` &#62; ../xxx.tar.gz 解压xxx.tar.gz到当前目录 tar -xzvf xxx.tar.gz 解压xxx.zip到当前目录 unzip xxx.zip 数据库备份，恢复 导出数据库为xxx.sql mysqldump -u 用户名 -p 数据库名 &#62; xxx.sql 导出全部数据库为xxx.sql mysqldump -u root -p --all-databases &#62; xxx.sql 将xxx.sql以UTF-8编码导入数据库 mysql -u 用户名 -p 数据库名 &#60; xxx.sql ––default-character-set=utf8 将xxx.sql以UTF-8编码导入全部数据库 mysql -u root -p &#60; xxx.sql [...]]]></description>
			<content:encoded><![CDATA[<p>打包解包：</p>
<p style="margin-left: 25px; padding-left: 15px; border-left: #21759B 2px solid;">打包当前目录下所有文件（不包含.htaccess等隐含文件）成xxx.tar.gz<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">tar -czvf xxx.tar.gz *</span><br />
打包当前目录下所有文件（包含.htaccess等隐含文件）成xxx.tar.gz，注意中间不是引号而是`，保存文件一定要保存到上级目录，要不连xxx.tar.gz本身也包含进去了<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">tar czvf - `find . -print` &gt; ../xxx.tar.gz</span><br />
解压xxx.tar.gz到当前目录<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">tar -xzvf xxx.tar.gz</span><br />
解压xxx.zip到当前目录<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">unzip xxx.zip</span></p>
<p><span id="more-2231"></span><br />
数据库备份，恢复</p>
<p style="margin-left: 25px; padding-left: 15px; border-left: #21759B 2px solid;">导出数据库为xxx.sql<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">mysqldump -u 用户名 -p 数据库名 &gt; xxx.sql</span><br />
导出全部数据库为xxx.sql<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">mysqldump -u root -p --all-databases &gt; xxx.sql</span><br />
将xxx.sql以UTF-8编码导入数据库<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">mysql -u 用户名 -p 数据库名 &lt; xxx.sql ––default-character-set=utf8</span><br />
将xxx.sql以UTF-8编码导入全部数据库<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">mysql -u root -p &lt; xxx.sql ––default-character-set=utf8</span></p>
<p>文件操作</p>
<p style="margin-left: 25px; padding-left: 15px; border-left: #21759B 2px solid;">删除文件xxx.rar<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">rm -vf xxx.rar</span><br />
新建文件夹xxx<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">mkdir xxx</span><br />
删除文件夹dir<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">rm -rf dir</span><br />
重命名文件或文件夹xxx为yyy（加目录是移动文件或文件夹）<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">mv xxx yyy</span><br />
复制文件或文件夹aaa到dir目录<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">cp aaa /dir</span><br />
创建link，给dir目录创建名为xxx的link<br />
<span style="color: #fff; background: #000; padding: 2px 10px; font-family: Lucida Console;">ln -s dir xxx</span></p>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/windows-env-run-linux-cmd/' rel='bookmark' title='在windows下运行linux下命令'>在windows下运行linux下命令</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/linux-ssh-commands/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>最安全的Godaddy免费空间去广告方法（已修正）</title>
		<link>http://shuai.be/archives/remove-godaddy-ads-safely/</link>
		<comments>http://shuai.be/archives/remove-godaddy-ads-safely/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:59:49 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[godaddy]]></category>

		<guid isPermaLink="false">http://shuai.be/?p=1678</guid>
		<description><![CDATA[php网页head部分加入如下代码： &#60;?php $lang = $_SERVER['HTTP&#95;ACCEPT&#95;LANGUAGE']; if(strstr($lang, 'zh&#45;')){ echo "&#60;style&#62;#conash3D0 {display:none}&#60;/style&#62;"; } ?&#62; 先判断visitor的浏览器语言，如果是中文，就加入css代码，屏蔽广告；如果是英文，则不屏蔽，这样godaddy检查时应该就不会发现了。 延伸阅读： Godaddy 2011年有效优惠码收集（域名注册，主机） GoDaddy域名DNS设置]]></description>
			<content:encoded><![CDATA[<p>php网页head部分加入如下代码：</p>
<pre style="font: 10pt Consolas, Courier New;">
<font color=#800000>&lt;?</font><font color=#0000FF>php</font>
    $lang = $_SERVER[<font color=#FF00FF>'HTTP&#95;ACCEPT&#95;LANGUAGE'</font>];
    <font color=#0000FF>if</font>(<font color=#FF0000>strstr</font>($lang, <font color=#FF00FF>'zh&#45;'</font>)){
        <font color=#FF0000>echo</font> <font color=#FF00FF>"&lt;style&gt;#conash3D0 {display:none}&lt;/style&gt;"</font>;
    }
?&gt;
</pre>
<p><span id="more-1678"></span><br />
先判断visitor的浏览器语言，如果是中文，就加入css代码，屏蔽广告；如果是英文，则不屏蔽，这样<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/godaddy/" title="查看 godaddy 中的全部文章" target="_blank">godaddy</a></span>检查时应该就不会发现了。</p>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/godaddy-valid-coupon-2011/' rel='bookmark' title='Godaddy 2011年有效优惠码收集（域名注册，主机）'>Godaddy 2011年有效优惠码收集（域名注册，主机）</a></li>
<li><a href='http://shuai.be/archives/godaddy-domain-dns-settings/' rel='bookmark' title='GoDaddy域名DNS设置'>GoDaddy域名DNS设置</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/remove-godaddy-ads-safely/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>设置.htaccess支持图片防盗链</title>
		<link>http://shuai.be/archives/htaccess-image-protection/</link>
		<comments>http://shuai.be/archives/htaccess-image-protection/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 06:43:30 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://shuai.be/?p=1643</guid>
		<description><![CDATA[在根目录.htaccess设置防盗链： 统一在网站根目录下的.htaccess设置，虽然理论上而言，在Apache中，可以针对每个目录分别设置.htaccess，通过许可权的继承与覆盖可以实现相当复杂的功能，不过，过多的.htaccess往往会增加管理的难度，修改.htaccess稍有遗漏就可能造成网站出现问题。 默认情况想禁止其它网站盗链，对图片而言，当其他网站使用《img src=”http://yourdomain.com/someimg”》盗链时，会自动重定向，当然，从降低对服务器带宽占用的角度考虑，你可以简单地拒绝其访问，让其网页上图片位置以红”X”号代替。 允许特定访问来源：单纯针对图片来说，我们也不可能禁止所有除你自己网站之外的其他访问，比如说Google，如果你希望通过Google图片搜索获得一定的访问的话，必须让其能够正确读取真正的图片，再如应能够让RSS订阅用户看feed中的图片。 运行特定目录下的文件被外部网站使用：完全禁止外部网站有时会带来不便，很大时候，我们自己也可能需要在外部网站使用部分文件，当然，放入这些目录的文件要有一定的限制，不然，便失去设置防盗链的意义了。 设置.htaccess禁止图片盗链，下面是禁止图片盗链的.htaccess设置部分 RewriteEngine on RewriteCond %{REQUEST_URI} ^/(allow1&#124;allow2) RewriteRule ^.*$ – [L] 首先，设置允许可“盗链”即外部网站可以使用的文件所在的目录，上面我们设置了两目录，分别为allow1和allow2，当然，如果你只有一个目录的话，可以将其改为： RewriteCond %{REQUEST_URI} ^/allow1 接下来判断是否为图片文件： RewriteCond %{REQUEST_FILENAME} \.(gif&#124;jpeg&#124;png)$ [NC] 你也可以根据自己的需要设置更多的文件类型： RewriteCond %{HTTP_REFERER} !^$ 上面这一行意在允许空“HTTP_REFERER”的访问，即允许用户在浏览器地址栏中直接输入图片地址的显示，一般而言，这是可以选的，不过建议这样设置，如果强迫必须具有“HTTP_REFERER”才能访问，可以回带来某些问题，不然说在用户通过代理访问时。 RewriteCond %{HTTP_REFERER} !shuai.be [NC] RewriteCond %{HTTP_REFERER} !google.com [NC] RewriteCond %{HTTP_REFERER} !baidu.com [NC] 设置允许访问的HTTP来源，包括Google等， RewriteRule (.*) /allow1/leech.gif [R,NC,L] 将不满足上述条件的访问重定向到leech.gif ，你可能已经注意到，leech.gif位于允许“盗链”的目录allowq下，这一点很重要，不然，你的警告资讯图片将无法在对方网站上显示。 其它类型文件的防盗链设定，如果你您的网站上存在其它较大的文件，如flash、mp3被其他网站盗链，可以同样采取上述方法，比如说flash文档，可以类似如下的设置： RewriteCond %{REQUEST_URI} ^/allow1 RewriteRule ^.*$ [...]]]></description>
			<content:encoded><![CDATA[<p><strong>在根目录<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/htaccess/" title="查看 .htaccess 中的全部文章" target="_blank">.htaccess</a></span>设置防盗链：</strong></p>
<blockquote><p>统一在网站根目录下的<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/htaccess/" title="查看 .htaccess 中的全部文章" target="_blank">.htaccess</a></span>设置，虽然理论上而言，在Apache中，可以针对每个目录分别设置<span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/htaccess/" title="查看 .htaccess 中的全部文章" target="_blank">.htaccess</a></span>，通过许可权的继承与覆盖可以实现相当复杂的功能，不过，过多的.htaccess往往会增加管理的难度，修改.htaccess稍有遗漏就可能造成网站出现问题。<br />
<span id="more-1643"></span><br />
默认情况想禁止其它网站盗链，对图片而言，当其他网站使用《img src=”http://yourdomain.com/someimg”》盗链时，会自动重定向，当然，从降低对服务器带宽占用的角度考虑，你可以简单地拒绝其访问，让其网页上图片位置以红”X”号代替。</p>
<p>允许特定访问来源：单纯针对图片来说，我们也不可能禁止所有除你自己网站之外的其他访问，比如说Google，如果你希望通过Google图片搜索获得一定的访问的话，必须让其能够正确读取真正的图片，再如应能够让RSS订阅用户看feed中的图片。</p>
<p>运行特定目录下的文件被外部网站使用：完全禁止外部网站有时会带来不便，很大时候，我们自己也可能需要在外部网站使用部分文件，当然，放入这些目录的文件要有一定的限制，不然，便失去设置防盗链的意义了。<br />
设置.htaccess禁止图片盗链，下面是禁止图片盗链的.htaccess设置部分</p>
<p>RewriteEngine on<br />
RewriteCond %{REQUEST_URI} ^/(allow1|allow2)<br />
RewriteRule ^.*$ – [L]</p>
<p>首先，设置允许可“盗链”即外部网站可以使用的文件所在的目录，上面我们设置了两目录，分别为allow1和allow2，当然，如果你只有一个目录的话，可以将其改为：<br />
RewriteCond %{REQUEST_URI} ^/allow1</p>
<p>接下来判断是否为图片文件：<br />
RewriteCond %{REQUEST_FILENAME} \.(gif|jpeg|png)$ [NC]</p>
<p>你也可以根据自己的需要设置更多的文件类型：<br />
RewriteCond %{HTTP_REFERER} !^$</p>
<p>上面这一行意在允许空“HTTP_REFERER”的访问，即允许用户在浏览器地址栏中直接输入图片地址的显示，一般而言，这是可以选的，不过建议这样设置，如果强迫必须具有“HTTP_REFERER”才能访问，可以回带来某些问题，不然说在用户通过代理访问时。</p>
<p>RewriteCond %{HTTP_REFERER} !shuai.be [NC]<br />
RewriteCond %{HTTP_REFERER} !google.com [NC]<br />
RewriteCond %{HTTP_REFERER} !baidu.com [NC]</p>
<p>设置允许访问的HTTP来源，包括Google等，<br />
RewriteRule (.*) /allow1/leech.gif [R,NC,L]</p>
<p>将不满足上述条件的访问重定向到leech.gif ，你可能已经注意到，leech.gif位于允许“盗链”的目录allowq下，这一点很重要，不然，你的警告资讯图片将无法在对方网站上显示。</p>
<p>其它类型文件的防盗链设定，如果你您的网站上存在其它较大的文件，如flash、mp3被其他网站盗链，可以同样采取上述方法，比如说flash文档，可以类似如下的设置：<br />
RewriteCond %{REQUEST_URI} ^/allow1<br />
RewriteRule ^.*$ – [L]RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} \.swf$ [NC]<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !shuai.be [NC]</p>
<p>(……其它允许访问来源)<br />
RewriteRule (.*) /allow1/leech.swf [R,NC,L]</p>
<p>当然，需要事先先创建一个声明版权资讯的Flash文件“leech.swf”，其它防止mp3文件、压缩文件盗链的设置与此类似，不再赘述。</p></blockquote>
<p><strong>在图片目录.htaccess设置防盗链：</strong></p>
<blockquote><p>.htaccess文件将影响其所在的目录及其子目录，因此，如果我们要保护的内容（此处以防止图片盗链为例，即图片）位于网站内多个目录下，可以考虑将其放在根目录下；而如果图片有单独的子目录如“/images/”，则只需将其放置在该目录下（当然也可以放到根目录中）。</p>
<p>需要注意的是，如果通过FTP方式将创建好的.htaccess上传到服务器上，传输模式应为ASCII而非Binary。上传到服务器后，应将其属性通过 CHMOD修改为644 或“RW-R–R–”，这样，可以保证服务器能够使用同时无法通过浏览器修改，当然，.htaccess的可读属性也存在一定的风险：攻击者可通过它找出您要保护的对象或认证文件位置——解决办法是将认证文件.htpasswd放到网站根目录之外，这样，便无法通过网络找到它了。<br />
使用.htaccess禁止盗链</p>
<p>通过.htaccess来防止网站的图片、压缩文件、或视频等非Html文件被盗链的方法相当简单，通过在该文件中加入几句命令即可保护我们宝贵的带宽。例如shuai.be设置如下：</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$ [NC]<br />
RewriteCond %{HTTP_REFERER} !shuai.be [NC]<br />
RewriteCond %{HTTP_REFERER} !google.com [NC]<br />
RewriteCond %{HTTP_REFERER} !baidu.com [NC]</p>
<p>RewriteRule .*\.(gif|jpg)$ http://nobing.cn/no.png [R,NC,L] </p>
<p>简单的解释一下上述语句：</p>
<p>1、RewriteCond %{HTTP_REFERER} !^$ [NC]</p>
<p>允许空“HTTP_REFERER”的访问，即允许用户在浏览器地址栏中直接输入图片地址时图片文件的显示。一般而言，这是可选的，不过，建议这么设置，如果强迫必须具有“HTTP_REFERER”才能访问，可能会带来某些问题，比如说在用户通过代理服务器访问时。</p>
<p>2、RewriteCond %{HTTP_REFERER} !shuai.be [NC]</p>
<p>设置允许访问的HTTP来源，包括我们的站点自身、Google、Baidu等。</p>
<p>3、RewriteRule .*\.(gif|jpg|png)$ http://nobing.cn/no.png [R,NC,L]</p>
<p>定义被盗链时替代的图片，让所有盗链 jpg、gif、png 等文件的网页，显示根目录下的 no.png 文件。注意：替换显示的图片不要放在设置防盗链的目录中，并且该图片文件体积越小越好。当然你也可以不设置替换图片，而是使用下面的语句即可：</p>
<p>RewriteRule .*\.(gif|jpg|png)$ – [F]</p>
<p>4、说明一下其中的R、NC 和 L</p>
<p>R 就是转向的意思</p>
<p>NC 指的是不区分大小写</p>
<p>L 的作用是指明本次转向到此结束，后续的转向不受先前判断语句的影响</p>
<p>5、防止盗链的文件类型</p>
<p>上例中是 gif、jpg、png，而根据需要，可更改或添加其他文件类型，如rar、mov等，不同文件扩展名间使用“|”分割。</p>
<p>这样的话，就可以基本做到简单的防止被盗链情况的发生，而且可以尽最大可能的减少服务器流量的无畏消耗。</p></blockquote>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/bind-domain-to-subdirectory-with-htaccess/' rel='bookmark' title='利用.htaccess将域名绑定到子目录'>利用.htaccess将域名绑定到子目录</a></li>
<li><a href='http://shuai.be/archives/magic-htaccess/' rel='bookmark' title='神奇的.htaccess'>神奇的.htaccess</a></li>
<li><a href='http://shuai.be/archives/htaccess-image-classify/' rel='bookmark' title='用.htaccess实现图片分类存放、统一读取'>用.htaccess实现图片分类存放、统一读取</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/htaccess-image-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess URL重写教程</title>
		<link>http://shuai.be/archives/htaccess-url-remodel/</link>
		<comments>http://shuai.be/archives/htaccess-url-remodel/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 01:16:16 +0000</pubDate>
		<dc:creator>Jones</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://shuai.be/?p=1493</guid>
		<description><![CDATA[.htaccess 非常强大，基本上可以利用它处理所有的URL操作，详细教程请参见 URL重写指南 延伸阅读： php asp jsp .htaccess nginx的301跳转（永久重定向）方法 神奇的.htaccess 设置wamp支持.htaccess]]></description>
			<content:encoded><![CDATA[<p><span class='wp_keywordlink_affiliate'><a href="http://shuai.be/tags/htaccess/" title="查看 .htaccess 中的全部文章" target="_blank">.htaccess</a></span> 非常强大，基本上可以利用它处理所有的URL操作，详细教程请参见<br />
<a href="http://lamp.linux.gov.cn/Apache/ApacheMenu/rewrite/rewrite_guide.html">URL重写指南</a></p>
<p><strong>延伸阅读：</strong><ol>
<li><a href='http://shuai.be/archives/php-asp-jsp-301-redirection/' rel='bookmark' title='php asp jsp .htaccess nginx的301跳转（永久重定向）方法'>php asp jsp .htaccess nginx的301跳转（永久重定向）方法</a></li>
<li><a href='http://shuai.be/archives/magic-htaccess/' rel='bookmark' title='神奇的.htaccess'>神奇的.htaccess</a></li>
<li><a href='http://shuai.be/archives/setup-wamp-support-htaccess/' rel='bookmark' title='设置wamp支持.htaccess'>设置wamp支持.htaccess</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shuai.be/archives/htaccess-url-remodel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

