<?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>37℃的站点</title>
	<atom:link href="http://www.37du.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.37du.org</link>
	<description>联系方式 110129307</description>
	<lastBuildDate>Tue, 10 Jan 2012 07:01:24 +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>js挂马</title>
		<link>http://www.37du.org/2012/01/10/js%e6%8c%82%e9%a9%ac.html</link>
		<comments>http://www.37du.org/2012/01/10/js%e6%8c%82%e9%a9%ac.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 07:01:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=266</guid>
		<description><![CDATA[首页通过搜索引擎，点击后跳转到另外一个主页，查找php木马也查找不到，用命令发现有一个木马加密隐藏在模板里，网站是通过phpcms写的，phpcms的权限设置有点问题。导致经常中木马。 最后通过firebug发现首页里有一条访问js代码跳转到其他域名。原来是写到js脚本最后。]]></description>
			<content:encoded><![CDATA[<p>首页通过搜索引擎，点击后跳转到另外一个主页，查找php木马也查找不到，用命令发现有一个木马加密隐藏在模板里，网站是通过phpcms写的，phpcms的权限设置有点问题。导致经常中木马。</p>
<p>最后通过firebug发现首页里有一条访问js代码跳转到其他域名。原来是写到js脚本最后。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2012/01/10/js%e6%8c%82%e9%a9%ac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress在lnmp环境下静态化</title>
		<link>http://www.37du.org/2012/01/10/wordpress%e5%9c%a8lnmp%e7%8e%af%e5%a2%83%e4%b8%8b%e9%9d%99%e6%80%81%e5%8c%96.html</link>
		<comments>http://www.37du.org/2012/01/10/wordpress%e5%9c%a8lnmp%e7%8e%af%e5%a2%83%e4%b8%8b%e9%9d%99%e6%80%81%e5%8c%96.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 03:07:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=258</guid>
		<description><![CDATA[wordpress的静态化网上有以下几种方式 第一种最普遍的 location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } 第二种 http://www.lutuzhi.com/opensource/306.html if (!-e $request_filename) { #下面四行斜体字实现链接rewrite,http://www.lutuzhi.com中的所有页面实现了静态化  rewrite ^/(index&#124;atom&#124;rsd)\.xml$ http://www.lutuzhi.com last; rewrite &#8230; <a href="http://www.37du.org/2012/01/10/wordpress%e5%9c%a8lnmp%e7%8e%af%e5%a2%83%e4%b8%8b%e9%9d%99%e6%80%81%e5%8c%96.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>wordpress的静态化网上有以下几种方式</p>
<p>第一种最普遍的</p>
<p>location / {<br />
if (-f $request_filename/index.html){<br />
rewrite (.*) $1/index.html break;<br />
}<br />
if (-f $request_filename/index.php){<br />
rewrite (.*) $1/index.php;<br />
}<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p>
<p>第二种</p>
<p>http://www.lutuzhi.com/opensource/306.html</p>
<p>if (!-e $request_filename) {</p>
<h6></h6>
<p><em>#下面四行斜体字实现链接rewrite,<a href="http://www.lutuzhi.com/">http://www.lutuzhi.com</a>中的所有页面实现了</em><em>静态化  </em></p>
<p><em>rewrite ^/(index|atom|rsd)\.xml$ </em><a href="http://www.lutuzhi.com/"><em>http://www.lutuzhi.com</em></a><em> last;</em></p>
<p><em>rewrite ^([_0-9a-zA-Z-]+)?(/wp-.*) $2 last;</em></p>
<p><em>rewrite ^([_0-9a-zA-Z-]+)?(/.*\.php)$ $2 last;</em></p>
<p><em>rewrite ^ /index.php last;</em></p>
<p>}</p>
<p>第三种</p>
<p>http://www.tetx.com/program/htm/tetx/blog/view/blog_id/1291521408/index.htm</p>
<p>location / {<br />
# This is cool because no php is touched for static content<br />
try_files $uri $uri/ /index.php;<br />
}</p>
<p>wordpress 后台设置为：</p>
<p>Settings &#8212; Permalinks &#8212; Common settings &#8212; Custom Structure 输入</p>
<p>/%year%/%monthnum%/%day%/%postname%.html</p>
<p>&nbsp;</p>
<p>设置&#8212;固定连接&#8212;自定义结构</p>
<p>参考：http://wiki.nginx.org/Wordpress</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2012/01/10/wordpress%e5%9c%a8lnmp%e7%8e%af%e5%a2%83%e4%b8%8b%e9%9d%99%e6%80%81%e5%8c%96.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lftp mirror 脚本</title>
		<link>http://www.37du.org/2012/01/10/lftp-mirror-%e8%84%9a%e6%9c%ac.html</link>
		<comments>http://www.37du.org/2012/01/10/lftp-mirror-%e8%84%9a%e6%9c%ac.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 02:05:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=252</guid>
		<description><![CDATA[参考文章如下网站的 http://www.centos.bz/2011/06/incremental-backup-site-using-lftp/ http://www.myamiga.com/journal/2011/03/25/using-lftp-to-mirror-content/ http://168.site90.net/doku.php?id=shell-script-mirror-ftp-sites-using-lftp #!/bin/sh /usr/bin/lftp -u admin,metcxxxx -e “mirror -svn /  /home/wwwroot/www ;exit”172.16.16.33 mirror下载目录 mirror  src  local 要指定远程路径和本地路径]]></description>
			<content:encoded><![CDATA[<p>参考文章如下网站的</p>
<p>http://www.centos.bz/2011/06/incremental-backup-site-using-lftp/</p>
<p>http://www.myamiga.com/journal/2011/03/25/using-lftp-to-mirror-content/</p>
<p>http://168.site90.net/doku.php?id=shell-script-mirror-ftp-sites-using-lftp</p>
<p>#!/bin/sh<br />
/usr/bin/lftp -u admin,metcxxxx -e “mirror -svn /  /home/wwwroot/www ;exit”172.16.16.33</p>
<p>mirror下载目录 mirror  src  local 要指定远程路径和本地路径</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2012/01/10/lftp-mirror-%e8%84%9a%e6%9c%ac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos awstats</title>
		<link>http://www.37du.org/2012/01/03/centos-awstats.html</link>
		<comments>http://www.37du.org/2012/01/03/centos-awstats.html#comments</comments>
		<pubDate>Tue, 03 Jan 2012 08:43:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=248</guid>
		<description><![CDATA[参考如下文章 http://centoshelp.org/servers/configuring-awstats-multiple-domains-hosted-on-the-same-server/ 首先安装epel 和rpmforge 源 yum install  install awstats GeoIP-data perl-Geo-IP cronolog geoip的国家和城市的数据装不了要手动下载 mkdir /var/www/GeoIP; cd /var/www/GeoIP wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gunzip GeoIP.dat.gz GeoLiteCity.dat.gz vi  /etc/httpd/conf/httpd.conf 修改日志格式 CustomLog “&#124;/usr/sbin/cronolog  /var/log/httpd/www.xx.com.%Y%m%d.log” combined cp /etc/awstats/awstats.model.conf /etc/awstats/awstats.www.xx.com.conf vi /etc/awstats/awstats.stats.example.com.conf We will be editing &#8230; <a href="http://www.37du.org/2012/01/03/centos-awstats.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>参考如下文章</p>
<p>http://centoshelp.org/servers/configuring-awstats-multiple-domains-hosted-on-the-same-server/</p>
<p>首先安装epel 和rpmforge 源</p>
<p>yum install  install awstats GeoIP-data perl-Geo-IP cronolog</p>
<p>geoip的国家和城市的数据装不了要手动下载</p>
<p>mkdir /var/www/GeoIP; cd /var/www/GeoIP</p>
<p>wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz</p>
<p>wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz</p>
<p>gunzip GeoIP.dat.gz GeoLiteCity.dat.gz</p>
<p>vi  /etc/httpd/conf/httpd.conf</p>
<p>修改日志格式</p>
<p>CustomLog “|/usr/sbin/cronolog  /var/log/httpd/www.xx.com.%Y%m%d.log” combined</p>
<p>cp /etc/awstats/awstats.model.conf /etc/awstats/awstats.www.xx.com.conf</p>
<p>vi /etc/awstats/awstats.stats.example.com.conf We will be editing the following lines: 1. LogFile=”/var/log/httpd/www.jxx.com.%YYYY-0%MM-0%DD-0.log”</p>
<p>可以查看awastats的配置文件上方有详细说明 -24是前一天的日志</p>
<p>2. SiteDomain=”stats.example.com” 3. HostAliases=”stats.example.com” 4. DirData=”/var/www/stats.example.com/” 5. LoadPlugin=”geoip GEOIP_STANDARD /var/lib/GeoIP/GeoIP.dat” (<em>using the yum install method</em>) 6. LoadPlugin=”geoip GEOIP_STANDARD /var/www/GeoIP/GeoIP.dat” (<em>using the <a href="http://www.maxmind.com/app/geolitecountry">MaxMind direct download</a> method</em>) 7. LoadPlugin=”geoip_city_maxmind GEOIP_STANDARD /var/www/GeoIP/GeoLiteCity.dat” (<em>using the <a href="http://www.maxmind.com/app/geolitecity">MaxMind direct download</a> method）</em><br />
awstats与apache的日志格式不一样 要修改成上述格式</p>
<p>vi /etc/httpd/conf.d/awstats.conf<br />
allow forn all<br />
perl /var/www/awstats/awstats.pl -config=www.xx.com -update &gt; /dev/null 2&gt;&amp;1</p>
<p>&nbsp;</p>
<pre>&lt;Directory "/var/www/stats.example.com"&gt;
AuthName "Restricted Area"
AuthType Basic
AuthBasicProvider file
AuthUserFile /var/www/stats.example.com/.htpasswds
AuthGroupFile /dev/null
require valid-user
&lt;/Directory&gt;</pre>
<p>&nbsp;</p>
<p>htpasswd -bc admin  metc7626160 .htpasswd</p>
<p>遇到点故障，发现脚本每天都没有执行crond 系统是centos6  结果发现minimal最小化安装没有安装crontabs yum install 一下就ok了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2012/01/03/centos-awstats.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos setup 配置工具</title>
		<link>http://www.37du.org/2011/12/30/centos-setup-%e9%85%8d%e7%bd%ae%e5%b7%a5%e5%85%b7.html</link>
		<comments>http://www.37du.org/2011/12/30/centos-setup-%e9%85%8d%e7%bd%ae%e5%b7%a5%e5%85%b7.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 01:14:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=244</guid>
		<description><![CDATA[yum install setup  system-config-firewall   system-config-firewall-tui   system-config-services  system-config-network-tui   ntsysv ntsysv 才能出来配置服务选项]]></description>
			<content:encoded><![CDATA[<p>yum install setup  system-config-firewall   system-config-firewall-tui   system-config-services  system-config-network-tui   ntsysv</p>
<p>ntsysv 才能出来配置服务选项</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2011/12/30/centos-setup-%e9%85%8d%e7%bd%ae%e5%b7%a5%e5%85%b7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>date</title>
		<link>http://www.37du.org/2011/11/19/date.html</link>
		<comments>http://www.37du.org/2011/11/19/date.html#comments</comments>
		<pubDate>Sat, 19 Nov 2011 13:21:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[日记]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=241</guid>
		<description><![CDATA[delday=$(date -d “7 days ago” +%Y%m%d)]]></description>
			<content:encoded><![CDATA[<p>delday=$(date  -d “7 days ago” +%Y%m%d)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2011/11/19/date.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos6  yum 时出现[Errno 14] PYCURL ERROR 6 &#8211; “”</title>
		<link>http://www.37du.org/2011/10/14/centos6-yum-%e6%97%b6%e5%87%ba%e7%8e%b0errno-14-pycurl-error-6.html</link>
		<comments>http://www.37du.org/2011/10/14/centos6-yum-%e6%97%b6%e5%87%ba%e7%8e%b0errno-14-pycurl-error-6.html#comments</comments>
		<pubDate>Fri, 14 Oct 2011 01:09:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=235</guid>
		<description><![CDATA[[Errno 14] PYCURL ERROR 6 &#8211; “” 竟然是nameserver的问题 用google的dns]]></description>
			<content:encoded><![CDATA[<p>[Errno 14] PYCURL ERROR 6 &#8211; “”</p>
<p>竟然是nameserver的问题 用google的dns</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2011/10/14/centos6-yum-%e6%97%b6%e5%87%ba%e7%8e%b0errno-14-pycurl-error-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows 下载网站</title>
		<link>http://www.37du.org/2011/09/28/windows-%e4%b8%8b%e8%bd%bd%e7%bd%91%e7%ab%99.html</link>
		<comments>http://www.37du.org/2011/09/28/windows-%e4%b8%8b%e8%bd%bd%e7%bd%91%e7%ab%99.html#comments</comments>
		<pubDate>Wed, 28 Sep 2011 01:07:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=229</guid>
		<description><![CDATA[http://msdn.itellyou.cn/]]></description>
			<content:encoded><![CDATA[<p>http://msdn.itellyou.cn/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2011/09/28/windows-%e4%b8%8b%e8%bd%bd%e7%bd%91%e7%ab%99.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>禁止win7驱动签名</title>
		<link>http://www.37du.org/2011/09/23/%e7%a6%81%e6%ad%a2win7%e9%a9%b1%e5%8a%a8%e7%ad%be%e5%90%8d.html</link>
		<comments>http://www.37du.org/2011/09/23/%e7%a6%81%e6%ad%a2win7%e9%a9%b1%e5%8a%a8%e7%ad%be%e5%90%8d.html#comments</comments>
		<pubDate>Fri, 23 Sep 2011 06:23:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.37du.org/?p=226</guid>
		<description><![CDATA[bcdedit/set testsigning on]]></description>
			<content:encoded><![CDATA[<p>bcdedit/set testsigning on</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2011/09/23/%e7%a6%81%e6%ad%a2win7%e9%a9%b1%e5%8a%a8%e7%ad%be%e5%90%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dede挂马处理</title>
		<link>http://www.37du.org/2011/09/03/dede%e6%8c%82%e9%a9%ac%e5%a4%84%e7%90%86.html</link>
		<comments>http://www.37du.org/2011/09/03/dede%e6%8c%82%e9%a9%ac%e5%a4%84%e7%90%86.html#comments</comments>
		<pubDate>Sat, 03 Sep 2011 09:01:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nimeia.org/?p=220</guid>
		<description><![CDATA[一个虚拟主机网站被挂马 dede做的 用php挂的马也删除不掉、发现是在templates里的！！手动删除 重新生成首页]]></description>
			<content:encoded><![CDATA[<p>一个虚拟主机网站被挂马 dede做的 用php挂的马也删除不掉、发现是在templates里的！！手动删除 重新生成首页</p>
]]></content:encoded>
			<wfw:commentRss>http://www.37du.org/2011/09/03/dede%e6%8c%82%e9%a9%ac%e5%a4%84%e7%90%86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

