﻿<?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; Apache</title>
	<atom:link href="http://www.yaoyingying.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yaoyingying.com</link>
	<description>Everything you have seen here has been an illusion!</description>
	<lastBuildDate>Mon, 26 Jul 2010 05:17:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Lighttp Rewrite Rule For WordPress</title>
		<link>http://www.yaoyingying.com/2010/02/02/lighttp-rewrite-rule-for-wordpress/</link>
		<comments>http://www.yaoyingying.com/2010/02/02/lighttp-rewrite-rule-for-wordpress/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:40:37 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Lighttp]]></category>
		<category><![CDATA[Rewrite Rule]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=757</guid>
		<description><![CDATA[根目录安装是这样的： url.rewrite-once = &#40; &#34;^/(.*)?/?files/$&#34; =&#62; &#34;index.php&#34;, &#34;^/(.*)?/?files/(.*)&#34; =&#62; &#34;wp-content/blogs.php?file=$2&#34;, &#34;^/(wp-.*)$&#34; =&#62; &#34;$1&#34;, &#34;^/([_0-9a-zA-Z-]+/)?(wp-.*)&#34; =&#62; &#34;$2&#34;, &#34;^/([_0-9a-zA-Z-]+/)?(.*\.php)$&#34; =&#62; &#34;$2&#34;, &#34;.&#34; =&#62; &#34;index.php&#34; &#41; wordpress 可以自动实现 域名无 www 向有的跳转，其他程序可以依靠： $HTTP&#91;&#34;host&#34;&#93; !~ &#34;^(www&#124;mail&#124;mysql)\.(domain\.org)$&#34; &#123; $HTTP&#91;&#34;host&#34;&#93; =~ &#34;^(.+\.)?(domain\.org)$&#34; &#123; url.redirect = &#40; &#34;^/(.*)&#34; =&#62; &#34;http://www.%2/$1&#34; &#41; &#125; &#125; 实现跳转。]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2010/02/02/lighttp-rewrite-rule-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu下启动Apache对.htaccess 的支持</title>
		<link>http://www.yaoyingying.com/2009/12/22/ubuntu%e4%b8%8b%e5%90%af%e5%8a%a8apache%e5%af%b9-htaccess-%e7%9a%84%e6%94%af%e6%8c%81/</link>
		<comments>http://www.yaoyingying.com/2009/12/22/ubuntu%e4%b8%8b%e5%90%af%e5%8a%a8apache%e5%af%b9-htaccess-%e7%9a%84%e6%94%af%e6%8c%81/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 08:36:22 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=732</guid>
		<description><![CDATA[步骤: 1. 终端运行 sudo a2enmod 程序提示可供激活的模块名称，输入： rewrite 2. 修改/etc/apache2/sites-enabled/000-default (该链接指向的是站点配置文件) 把（默认的www目录、或者需要应用.htaccess的目录）下的AllowOverride 属性改为All，保存。 3. 重新加载apache sudo /etc/init.d/apache2 restart 收工。]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/12/22/ubuntu%e4%b8%8b%e5%90%af%e5%8a%a8apache%e5%af%b9-htaccess-%e7%9a%84%e6%94%af%e6%8c%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian/Ubuntu Apache Mod_Rewrite 安装</title>
		<link>http://www.yaoyingying.com/2009/09/21/debian-ubuntu-apache-mod_rewrite-%e5%ae%89%e8%a3%85/</link>
		<comments>http://www.yaoyingying.com/2009/09/21/debian-ubuntu-apache-mod_rewrite-%e5%ae%89%e8%a3%85/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 03:24:43 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=670</guid>
		<description><![CDATA[在终端中执行,我常常是使用putty 来远程连接的，这样省的在2个操作界面切换。 #debian a2enmod rewrite #ubuntu sudo a2enmod rewrite 指令后，即启用了 Mod_rewrite 模块。 另外，也可以通过将 /etc/apache2/mods-available/rewrite.load 连接到 /etc/apache2/mods-enabled/rewrite.load 来打开 Mod_rewrite 模块。用指令操作就是： #debian ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load #ubuntu sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load 一点小提示 事实上，当在Debian or Ubuntu 中采用上述做法并重启了 Apache 服务后，仍然无法正常 rewrite 网址。这里，还有一点需要注意的地方： sudo vim /etc/apache2/sites-enabled/000-default 将其中的： AllowOverride None 修改为： AllowOverride All 上面的 /etc/apache2/sites-enabled/000-default 实则为 /etc/apache2/sites-available/default 的连接。而 AllowwOverride None [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/09/21/debian-ubuntu-apache-mod_rewrite-%e5%ae%89%e8%a3%85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 下 Apache Virtualhost 设置</title>
		<link>http://www.yaoyingying.com/2009/06/16/windows-%e4%b8%8b-apache-virtualhost-%e8%ae%be%e7%bd%ae/</link>
		<comments>http://www.yaoyingying.com/2009/06/16/windows-%e4%b8%8b-apache-virtualhost-%e8%ae%be%e7%bd%ae/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 16:03:44 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Virtualhost]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=382</guid>
		<description><![CDATA[Apache with virtual host on Windows 一个很平常的问题，windows下怎么在apache上设置 virtualhost （虚拟主机），其实很简单。 这儿以xampp 为例。 第一，设置域名解析。 我们需要打开 host 这样一个文件，不同单位 windows 版本，其位置也不近相同， Windows 3.1/95/98/ME: c:\windows\hosts Windows NT/2000/XP Pro: c:\winnt\system32\drivers\etc\hosts or c:\windows\system32\drivers\etc\hosts Windows XP Home: c:\windows\system32\drivers\etc\hosts Windows Vista: C:\Windows\System32\Drivers\etc\hosts 用记事本打开 host 文件，如果你是vista，需要以administrator 运行记事本，在最下面添加： 127.0.0.1 wordpress.do 127.0.0.1 websitebaker.do 左边的ip 是这台电脑的IP地址，右边的是虚拟主机名（设置成功后就可以以这个虚拟主机名访问目录）。 第二，编辑httpd-vhosts.conf 用记事本打开httpd-vhosts.conf，该文件在xampp\apache\conf\extra，把下面的代码复制进去。 &#60;VirtualHost *:80&#62; DocumentRoot /xampplite/htdocs ServerName localhost &#60;Directory /&#62; Options FollowSymLinks [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/06/16/windows-%e4%b8%8b-apache-virtualhost-%e8%ae%be%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess 的一点用法</title>
		<link>http://www.yaoyingying.com/2009/06/12/htaccess-%e7%9a%84%e4%b8%80%e7%82%b9%e7%94%a8%e6%b3%95/</link>
		<comments>http://www.yaoyingying.com/2009/06/12/htaccess-%e7%9a%84%e4%b8%80%e7%82%b9%e7%94%a8%e6%b3%95/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 14:15:41 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[lamp]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=378</guid>
		<description><![CDATA[LAMP 环境里可以很容易的通过 .HTACCESS 进行一些网站的设置 网站引索： DirectoryIndex index.php index.htm index.html 域名重定向，将yaoyingying.com 重定向到 www.yaoyingying.com RewriteEngine On RewriteCond %{HTTP_HOST} ^yaoyingying\.com$ [NC] RewriteRule ^(.*)$ http://www.yaoyingying.com/$1 [R=301,L] 下面这些对静态页网站的 URL 优化就有很大帮组了，取好每个页面文件的名字，通过 下面的规则进行目录结构式优化。 RewriteRule ^([a-z]+)\/([a-z0-9]+)-([a-z0-9]+)\/$ $1_$2-$3.php [QSA,L] RewriteRule ^([a-z]+)\/([a-z]+)-([a-z]+)\/$ $1_$2-$3.php [QSA,L] RewriteRule ^([a-z]+)\/([a-z]+)-([a-z]+)-([a-z]+)\/$ $1_$2-$3-$4.php [QSA,L] RewriteRule ^([a-z]+)-([a-z]+)\/([a-z]+)\/$ $1-$2_$3.php [QSA,L] RewriteRule ^([a-z]+)-([a-z]+)\/([a-z]+)-([a-z]+)\/$ $1-$2_$3-$4.php [QSA,L] RewriteRule ^([a-z]+)-([a-z]+)\/([a-z]+)-([a-z]+)-([a-z]+)\/$ $1-$2_$3-$4-$5.php [QSA,L] &#160; RewriteRule ^([a-z]+)\/([a-z0-9]+)\/$ $1_$2.php [QSA,L] [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/06/12/htaccess-%e7%9a%84%e4%b8%80%e7%82%b9%e7%94%a8%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache 通过 .htaccess 对目录加密</title>
		<link>http://www.yaoyingying.com/2009/06/01/apache-%e9%80%9a%e8%bf%87-htaccess-%e5%af%b9%e7%9b%ae%e5%bd%95%e5%8a%a0%e5%af%86/</link>
		<comments>http://www.yaoyingying.com/2009/06/01/apache-%e9%80%9a%e8%bf%87-htaccess-%e5%af%b9%e7%9b%ae%e5%bd%95%e5%8a%a0%e5%af%86/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 12:49:02 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[目录加密]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=346</guid>
		<description><![CDATA[例如有/home/www/website/dir1 目录，需要对/dir1/加密访问，必须输入口令密码才能访问。 在这种情况下，要是/dir1/加密可以通过 .htaccess 和 .htpasswd 的设置来实现 在/home/www/website/dir1下建立.htaccess文件 vi /home/test1/a/.htaccess 文件内容如下 AuthName &#8220;===LOGIN===&#8221;   #随便填写 AuthType Basic AuthUserFile /home/www/website/dir1/.htpasswd Require valid-user username 保存退出 账号生成口令 htpasswd -c /home/test1/a/.htpasswd username 系统会要求输入两遍该用户的密码。 修改密码也是同样 htpasswd -c /home/test1/a/.htpasswd username]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/06/01/apache-%e9%80%9a%e8%bf%87-htaccess-%e5%af%b9%e7%9b%ae%e5%bd%95%e5%8a%a0%e5%af%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache日志分析</title>
		<link>http://www.yaoyingying.com/2009/05/02/apache%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90/</link>
		<comments>http://www.yaoyingying.com/2009/05/02/apache%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:15:45 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[日志分析]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=248</guid>
		<description><![CDATA[1,查看apache进程: ps aux &#124; grep httpd &#124; grep -v grep &#124; wc -l 2,查看80端口的tcp连接: netstat -tan &#124; grep &#34;ESTABLISHED&#34; &#124; grep &#34;:80&#34; &#124; wc -l 3,通过日志查看当天ip连接数，过滤重复: cat access_log &#124; grep &#34;20/Oct/2008&#34; &#124; awk '{print $2}' &#124; sort &#124; uniq -c &#124; sort -nr 4,当天ip连接数最高的ip都在干些什么(原来是蜘蛛): cat access_log &#124; grep &#34;20/Oct/2008:00&#34; &#124; grep &#34;122.102.7.212&#34; &#124; awk '{print [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/05/02/apache%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache的rewrite的设置参数</title>
		<link>http://www.yaoyingying.com/2009/05/02/apache%e7%9a%84rewrite%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e6%95%b0/</link>
		<comments>http://www.yaoyingying.com/2009/05/02/apache%e7%9a%84rewrite%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e6%95%b0/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:04:32 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=243</guid>
		<description><![CDATA[Apache的rewrite的重写非常常用,现总结了一下. Apache mod_rewrite规则重写的标志一览 R[=code](force redirect) 强制外部重定向 强制在替代字符串加上http://thishost[:thisport]/前缀重定向到外部的URL.如果code不指定，将用缺省的302 HTTP状态码。 F(force URL to be forbidden)禁用URL,返回403HTTP状态码。 G(force URL to be gone) 强制URL为GONE，返回410HTTP状态码。 P(force proxy) 强制使用代理转发。 L(last rule) 表明当前规则是最后一条规则，停止分析以后规则的重写。 N(next round) 重新从第一条规则开始运行重写过程。 C(chained with next rule) 与下一条规则关联 如果规则匹配则正常处理，该标志无效，如果不匹配，那么下面所有关联的规则都跳过。 T=MIME-type(force MIME type) 强制MIME类型 NS (used only if no internal sub-request) 只用于不是内部子请求 NC(no case) 不区分大小写 QSA(query string append) 追加请求字符串 NE(no URI [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/05/02/apache%e7%9a%84rewrite%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e6%95%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Server apt-get install Apache2 &amp; PHP5 &amp; MySQL5</title>
		<link>http://www.yaoyingying.com/2009/03/03/ubuntu-server-apt-get-install-apache2-php5-mysql5/</link>
		<comments>http://www.yaoyingying.com/2009/03/03/ubuntu-server-apt-get-install-apache2-php5-mysql5/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 15:42:46 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[代码人生]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu server]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=22</guid>
		<description><![CDATA[用apt-get方法安装mysql5 + Apache2 + PHP5＋Phpmyadmin： 大家请先看下Ubuntu的WIKI，（http://wiki.ubuntu.org）上面讲的很详细的。但本人按上面做的第一次没有成功。apache2,php5,mysql5都可以运行，就是phpmyadmin不能用。 本人得到的经验是：MYSQL安成功后，一定要先给它设个密码，这上步是不可少的。 此篇只代表个人的观点和经验，可能会片面化和有错误，请大家批评指正，有问题大家一起来讨论！！ 1 .要用apt-get的方式安装，最好，也可能是必须先运行下面在命令升级自己的系统，我的就只能先升级后才能安装mysql5 + Apache2 + PHP5的。 我在没升级前运行sudo apt-get install apache2 php5 mysql-server 是没有用的。而如果你找的源不好或是你的网络不稳定的话，你也有可能升级不成。这样的话，你想用apt-get的方式来安装一些软件时可能是不能安装的。 sudo apt-get update sudo apt-get dist-upgrade 2.安装： sudo apt-get install mysql-server 安装上mysql5 sudo apt-get install apache2 安装apache2 sudo apt-get install php5 安装php5 sudo apt-get install php5-mysql 安装php的mysql模块 sudo apt-get install php5-gd 安装GD库 在运行上面的命令的时候，可以留心看下libapache2-mod-auth-mysql（安装apache2时可能会安上）和libapache2-mod-php5,如果看到安上了就不用再单独安装了。 3 [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/03/03/ubuntu-server-apt-get-install-apache2-php5-mysql5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
