<?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.hjide.com/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hjide.com</link>
	<description>每一天我們都在進步</description>
	<lastBuildDate>Fri, 03 Feb 2012 06:26:12 +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>Apache中URL的Rewrite 在jsp上的应用</title>
		<link>http://www.hjide.com/article/241.htm</link>
		<comments>http://www.hjide.com/article/241.htm#comments</comments>
		<pubDate>Tue, 26 Feb 2008 08:03:36 +0000</pubDate>
		<dc:creator>Jock</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://blog.tgb.net.cn/?p=241</guid>
		<description><![CDATA[Apache中URL的Rewrite现在讲究面向搜索引擎的开发。当我们使用jsp时，搜索引擎的收藏效果不是很好，所以我们可以转义这样的URL。比如：我们可以借助rewrite使用/blog/user/0.html来访问/blog/user/blog_show.jsp?userid＝0使搜索引擎更容易搜集到我们的网站信息。具体配置很简单，介绍如下首先：还是打开%Apache2%&#92;conf文件夹，找到http.conf文件，搜索rewrite找到#LoadModule rewrite_module modules/mod_rewrite.so，将它前面的#去掉。然后在你要使用的VirtualHost中加入RewriteEngine&#160;&#160; on＃打开rewrite引擎RewriteLog&#160;&#160;&#160;&#160;&#160;&#160; logs/rewrite.log＃rewrite日志，可选配置，建议使用RewriteLogLevel 3＃rewrite日志等级，默认为0不记录，所以只要使用日志，就要配置，3就全记录了，可以更大但没有什么意义。RewriteRule&#160;&#160;&#160;&#160; /blog/user/(.+)&#92;.html$ /blog/user/blog_show.jsp?userid=$1&#160;&#160;[PT ]＃转义的规则，使用正则表达式（我也不熟，自己去研究吧），我上面的例子是将/blog/user/*.html的URL转义成/blog/user.blog_show.jsp?userid=*。注意后面的 PT 这是保证你这样转义之后Apache能将它转给Tomcat否则Apache会自己处理这个链接，造成什么也得不到。注意 PT ，[R]的区别，使用 PT 在客户地址栏的显示还是*.html,如果将 PT 换成[R]则地址栏也会显示成.jsp]]></description>
		<wfw:commentRss>http://www.hjide.com/article/241.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache配置禁止访问目录列表</title>
		<link>http://www.hjide.com/article/145.htm</link>
		<comments>http://www.hjide.com/article/145.htm#comments</comments>
		<pubDate>Sun, 07 Jan 2007 17:47:55 +0000</pubDate>
		<dc:creator>堕落天使</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://blog.tgb.net.cn/?p=145</guid>
		<description><![CDATA[&#60;Directory &#160; &#34;/apache/htdocs&#34;&#62; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Options &#160; Indexes &#160; FollowSymLinks &#160; MultiViews &#160; ExecCGI &#160; &#160;把Indexes去掉 &#160; &#160;改成Options &#160; FollowSymLinks &#160; MultiViews &#160; ExecCGI &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;AllowOverride &#160; None &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Order &#160; allow,deny &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.hjide.com/article/145.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>建立resin和apache的虚拟主机</title>
		<link>http://www.hjide.com/article/116.htm</link>
		<comments>http://www.hjide.com/article/116.htm#comments</comments>
		<pubDate>Mon, 18 Dec 2006 07:49:41 +0000</pubDate>
		<dc:creator>Jock</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[resin]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://blog.tgb.net.cn/?p=116</guid>
		<description><![CDATA[我们建立的是tes1.jsp.com test2.jsp.com 两个虚拟主机vi /usr/java/httpd2/conf/httpd.conf 复制如下内容到httpd.conf里NameVirtualHost 192.168.0.1 &#160;虚拟主机建立所在的IP&#60;VirtualHost 199.199.0.1&#62; &#160; &#160;DocumentRoot /home/jsp1/ &#160;文件所在目录 &#160; &#160;ServerName tes1.jsp.com &#160;访问的域名&#60;/VirtualHost&#62;VirtualHost 192.168.0.1&#62; &#160; &#160;DocumentRoot /home/jsp2/ &#160; &#160;ServerName test2.jsp.com&#60;/VirtualHost&#62;vi /usr/java/resin/conf/resin.conf查找如下代码并修改： &#160; &#160;&#60;host id=&#34;&#34; root-directory=&#34;.&#34;&#62; &#160; &#160; &#160;&#60;!&#8211; &#160; &#160; &#160; &#160; &#8211; configures an explicit root web-app matching the &#160; &#160; &#160; &#160; &#8211; webapp&#039;s ROOT &#160; &#160; &#160; &#160;&#8211;&#62; &#160; [...]]]></description>
		<wfw:commentRss>http://www.hjide.com/article/116.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache的镜像</title>
		<link>http://www.hjide.com/article/5.htm</link>
		<comments>http://www.hjide.com/article/5.htm#comments</comments>
		<pubDate>Thu, 02 Nov 2006 13:04:51 +0000</pubDate>
		<dc:creator>Jock</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.tgb.net.cn/?p=5</guid>
		<description><![CDATA[最近老上不去apache的网站，这里有个镜像可以下载需要的东西。http://mirror.mirimar.net/apache/]]></description>
		<wfw:commentRss>http://www.hjide.com/article/5.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

