<?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>我爱 Linux</title>
	<atom:link href="http://www.52linux.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.52linux.com</link>
	<description>52Linux.com</description>
	<lastBuildDate>Thu, 08 Mar 2012 12:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>vncserver服务可以在系统引导时自动启动</title>
		<link>http://www.52linux.com/57.html</link>
		<comments>http://www.52linux.com/57.html#comments</comments>
		<pubDate>Thu, 08 Mar 2012 12:59:36 +0000</pubDate>
		<dc:creator>52linxadmin</dc:creator>
				<category><![CDATA[LINUX运维经验]]></category>

		<guid isPermaLink="false">http://www.52linux.com/?p=57</guid>
		<description><![CDATA[关键一步: vncserver服务可以在系统引导时自动启动. 但是需要进行设置才能使之正常自动启动. 首先,编辑/etc/sysconfig/vncservers文件，把使用VNC服务的用户添加到这个文件中，添加的内容如下例所示: VNCSERVERS=&#8221;N:user&#8221; 此处N指VNC服务器所在的显示服务器编号。user指运行VNC的 用户。多个显示服务和用户之间可通过如下设置来指定: VNCSERVERS=&#8221;N:user1 Y:user2&#8243; 来自 http://wfbwx.blog.hexun.com/31750918_d.html]]></description>
			<content:encoded><![CDATA[<p>关键一步:</p>
<p>vncserver服务可以在系统引导时自动启动. 但是需要进行设置才能使之正常自动启动.<br />
首先,编辑/etc/sysconfig/vncservers文件，把使用VNC服务的用户添加到这个文件中，添加的内容如下例所示:<br />
VNCSERVERS=&#8221;N:user&#8221;<br />
此处N指VNC服务器所在的显示服务器编号。user指运行VNC的 用户。多个显示服务和用户之间可通过如下设置来指定:<br />
VNCSERVERS=&#8221;N:user1 Y:user2&#8243;</p>
<p>来自</p>
<p>http://wfbwx.blog.hexun.com/31750918_d.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52linux.com/57.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx 针对一类特定referer 屏蔽，可能对某些攻击有效</title>
		<link>http://www.52linux.com/53.html</link>
		<comments>http://www.52linux.com/53.html#comments</comments>
		<pubDate>Sat, 28 Jan 2012 02:23:46 +0000</pubDate>
		<dc:creator>52linxadmin</dc:creator>
				<category><![CDATA[LINUX运维经验]]></category>
		<category><![CDATA[NGINX配置]]></category>

		<guid isPermaLink="false">http://www.52linux.com/?p=53</guid>
		<description><![CDATA[一个客户服务最近受到攻击，通过查看nginx的log发现规律是 referer地址来自相同的字符串 于是乎用下面的屏蔽代码 if ($http_referer ~* &#8220;来源字串里面包含的特定字串&#8221;){return 403;} 下面是一些资料 ~ 匹配，区分大小写 ~* 不区分大小写的匹配 !~ 不匹配 !~* 不匹配 ^~ 常用于location 语法中，后边是一个字符串。它的意思是，在这个字符串匹配后停止进行正则表达式的匹配。 如： location ^~ /images/，你希望对/images/这个目录进行一些特别的操作，如增加expires头，防盗链等，但是你又想把除了这个目录的图片外的所有图片只进行增加expires头的操作，这个操作可能会用到另外一个location，例如：location ~* \.(gif&#124;jpg&#124;jpeg)$，这样，如果有请求/images/1.jpg，nginx如何决定去进行哪个location中的操作呢？结果取决于标识符^~，如果你这样写：location /images/，这样nginx会将1.jpg匹配到location ~* \.(gif&#124;jpg&#124;jpeg)$这个location中，这并不是你需要的结果，而增加了^~这个标识符后，它在匹配了/images/这个字符串后就停止搜索其它带正则的location。 = 表示精确的查找地址，如location = /它只会匹配uri为/的请求，如果请求为/index.html，将查找另外的location，而不会匹配这个，当然可以写两个location，location = /和location /，这样/index.html将匹配到后者，如果你的站点对/的请求量较大，可以使用这个方法来加快请求的响应速度。 @ 表示为一个location进行命名，即自定义一个location，这个location不能被外界所访问，只能用于Nginx产生的子请求，主要为error_page和try_files。]]></description>
			<content:encoded><![CDATA[<p>一个客户服务最近受到攻击，通过查看nginx的log发现规律是 referer地址来自相同的字符串<br />
于是乎用下面的屏蔽代码 </p>
<p>if ($http_referer ~* &#8220;来源字串里面包含的特定字串&#8221;){return 403;}</p>
<p>下面是一些资料</p>
<p>~ 匹配，区分大小写<br />
~*  不区分大小写的匹配<br />
!~   不匹配<br />
!~*  不匹配<br />
^~   常用于location 语法中，后边是一个字符串。它的意思是，在这个字符串匹配后停止进行正则表达式的匹配。<br />
如： location ^~ /images/，你希望对/images/这个目录进行一些特别的操作，如增加expires头，防盗链等，但是你又想把除了这个目录的图片外的所有图片只进行增加expires头的操作，这个操作可能会用到另外一个location，例如：location ~* \.(gif|jpg|jpeg)$，这样，如果有请求/images/1.jpg，nginx如何决定去进行哪个location中的操作呢？结果取决于标识符^~，如果你这样写：location /images/，这样nginx会将1.jpg匹配到location ~* \.(gif|jpg|jpeg)$这个location中，这并不是你需要的结果，而增加了^~这个标识符后，它在匹配了/images/这个字符串后就停止搜索其它带正则的location。<br />
=      表示精确的查找地址，如location = /它只会匹配uri为/的请求，如果请求为/index.html，将查找另外的location，而不会匹配这个，当然可以写两个location，location = /和location /，这样/index.html将匹配到后者，如果你的站点对/的请求量较大，可以使用这个方法来加快请求的响应速度。<br />
@      表示为一个location进行命名，即自定义一个location，这个location不能被外界所访问，只能用于Nginx产生的子请求，主要为error_page和try_files。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52linux.com/53.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx apache php mysql 编译参数查看方法</title>
		<link>http://www.52linux.com/51.html</link>
		<comments>http://www.52linux.com/51.html#comments</comments>
		<pubDate>Tue, 17 Jan 2012 06:16:43 +0000</pubDate>
		<dc:creator>52linxadmin</dc:creator>
				<category><![CDATA[LINUX运维经验]]></category>

		<guid isPermaLink="false">http://www.52linux.com/?p=51</guid>
		<description><![CDATA[1、nginx编译参数： your_nginx_dir/sbin/nginx -v 2、apache编译参数： cat your_apache_dir/build/config.nice 3、php编译参数： your_php_dir/bin/php -i &#124;grep configure 4、mysql编译参数： cat your_mysql_dir/bin/mysqlbug &#124;grep configure]]></description>
			<content:encoded><![CDATA[<p>1、nginx编译参数：<br />
your_nginx_dir/sbin/nginx -v</p>
<p>2、apache编译参数：<br />
cat your_apache_dir/build/config.nice</p>
<p>3、php编译参数：<br />
your_php_dir/bin/php -i |grep configure</p>
<p>4、mysql编译参数：<br />
cat your_mysql_dir/bin/mysqlbug |grep configure </p>
]]></content:encoded>
			<wfw:commentRss>http://www.52linux.com/51.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz X 的php最小化安全配置，只在特定目录允许php执行，禁止木马运行</title>
		<link>http://www.52linux.com/32.html</link>
		<comments>http://www.52linux.com/32.html#comments</comments>
		<pubDate>Mon, 16 Jan 2012 13:44:30 +0000</pubDate>
		<dc:creator>52linxadmin</dc:creator>
				<category><![CDATA[NGINX配置]]></category>

		<guid isPermaLink="false">http://www.52linux.com/?p=32</guid>
		<description><![CDATA[location ~ ^/((api&#124;archiver)/.*&#124;(install&#124;uc_server)/[^/]+&#124;[^/]+)\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; fastcgi_param SCRIPT_FILENAME $documnet_root$fastcgi_script_name; }]]></description>
			<content:encoded><![CDATA[<pre> location ~ ^/((api|archiver)/.*|(install|uc_server)/[^/]+|[^/]+)\.php$
    {
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fcgi.conf;
        fastcgi_param SCRIPT_FILENAME  $documnet_root$fastcgi_script_name;
    }</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.52linux.com/32.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下编译php支持jpeg的备忘</title>
		<link>http://www.52linux.com/13.html</link>
		<comments>http://www.52linux.com/13.html#comments</comments>
		<pubDate>Tue, 16 Aug 2011 02:28:16 +0000</pubDate>
		<dc:creator>52linxadmin</dc:creator>
				<category><![CDATA[PHP配置]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.52linux.com/?p=13</guid>
		<description><![CDATA[有一朋友liunx主机配置php的gd库未支持jpeg,需要重新编译支持jpeg, 凭经验用 ./configure –with-gd –with-jpeg-dir=/usr/lib 这个居然不起作用 改变顺序如下生效 ./configure –with-jpeg-dir=/usr/lib –with-gd 在此谨记！]]></description>
			<content:encoded><![CDATA[<p>有一朋友liunx主机配置php的gd库未支持jpeg,需要重新编译支持jpeg,<br />
凭经验用</p>
<p>./configure –with-gd –with-jpeg-dir=/usr/lib<br />
这个居然不起作用</p>
<p>改变顺序如下生效<br />
./configure –with-jpeg-dir=/usr/lib –with-gd</p>
<p>在此谨记！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.52linux.com/13.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

