<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Apache2安装后出现403 Forbidden 的原因</title>
	<atom:link href="http://www.toplee.com/blog/93.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.toplee.com/blog/93.html</link>
	<description>活到老，学到老 ...   @ IT，业界，互联网</description>
	<lastBuildDate>Wed, 17 Mar 2010 09:02:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-30953</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 20 Mar 2009 04:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-30953</guid>
		<description>[Comment ID #30952 Will Be Quoted Here]

比如你有个目录是 /var/www/xxx 但是apache的DocumentRoot目录却是类似 /usr/local/www/htdocs 此时，你就需要单独写如下一段内容：
&lt;directory &quot;/var/www/xxx&quot;&gt;
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/directory&gt;


不过我都已经两三年没有碰过apache了，今天的最新版不知道是不是还这样的。 :)</description>
		<content:encoded><![CDATA[<blockquote class='comment_quote'><p><a href="http://www.toplee.com/blog/93.html#comment-30952" title="Click here to view the original comment"><em>kran on March 19, 2009 at 11:24 pm said:</em></a></p>
<p>另外一种可能性出现在我们配置了不同的VirtualHost，并且有某个VirtualHost的Doc&#8230;</p></blockquote>
<p>比如你有个目录是 /var/www/xxx 但是apache的DocumentRoot目录却是类似 /usr/local/www/htdocs 此时，你就需要单独写如下一段内容：<br />
&lt;directory &#8220;/var/www/xxx&#8221;&gt;<br />
    Options Indexes FollowSymLinks<br />
    AllowOverride None<br />
    Order allow,deny<br />
    Allow from all<br />
&lt;/directory&gt;</p>
<p>不过我都已经两三年没有碰过apache了，今天的最新版不知道是不是还这样的。 <img src='http://www.toplee.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kran</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-30952</link>
		<dc:creator>kran</dc:creator>
		<pubDate>Thu, 19 Mar 2009 15:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-30952</guid>
		<description>另外一种可能性出现在我们配置了不同的VirtualHost，并且有某个VirtualHost的DocumentRoot不在全局的 DocumentRoot目录下，这时必须在全局种单独增加对该目录的Directory 项进行设置，否则该VirtualHost下的所有访问均会出现403 forbidden错误。

这个问题是因为Apache2对于权限和安全的更高要求，对分布在不同磁盘上的目录文件进行严格管理，我们进行web规划的时候必须注意这一点。

请问这个该怎么设置？</description>
		<content:encoded><![CDATA[<p>另外一种可能性出现在我们配置了不同的VirtualHost，并且有某个VirtualHost的DocumentRoot不在全局的 DocumentRoot目录下，这时必须在全局种单独增加对该目录的Directory 项进行设置，否则该VirtualHost下的所有访问均会出现403 forbidden错误。</p>
<p>这个问题是因为Apache2对于权限和安全的更高要求，对分布在不同磁盘上的目录文件进行严格管理，我们进行web规划的时候必须注意这一点。</p>
<p>请问这个该怎么设置？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-30066</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 25 Aug 2008 06:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-30066</guid>
		<description>[Comment ID #30064 Will Be Quoted Here]

随时联系我吧，和我用email联系就行 michael # toplee.com</description>
		<content:encoded><![CDATA[<blockquote class='comment_quote'><p><a href="http://www.toplee.com/blog/93.html#comment-30064" title="Click here to view the original comment"><em>Kelvin C on August 25, 2008 at 11:33 am said:</em></a></p>
<p>I leave some question here. Yep. If you don&#8217;t wann&#8230;</p></blockquote>
<p>随时联系我吧，和我用email联系就行 michael # toplee.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin C</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-30064</link>
		<dc:creator>Kelvin C</dc:creator>
		<pubDate>Mon, 25 Aug 2008 03:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-30064</guid>
		<description>I leave some question here. Yep. If you don&#039;t wanna reply me for any excuse. eMail me with &quot;No&quot;. Thanks Michael.</description>
		<content:encoded><![CDATA[<p>I leave some question here. Yep. If you don&#8217;t wanna reply me for any excuse. eMail me with &#8220;No&#8221;. Thanks Michael.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gzlsl</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-29823</link>
		<dc:creator>gzlsl</dc:creator>
		<pubDate>Mon, 21 Jul 2008 15:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-29823</guid>
		<description>有时候是权限不够导致的</description>
		<content:encoded><![CDATA[<p>有时候是权限不够导致的</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chenghua</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-25897</link>
		<dc:creator>chenghua</dc:creator>
		<pubDate>Sun, 06 Apr 2008 15:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-25897</guid>
		<description>非常感谢,我在这问题困了一晚上 终于解决了 就是selinux设置的问题 
谢谢</description>
		<content:encoded><![CDATA[<p>非常感谢,我在这问题困了一晚上 终于解决了 就是selinux设置的问题<br />
谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pockter</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-2#comment-25772</link>
		<dc:creator>pockter</dc:creator>
		<pubDate>Wed, 26 Mar 2008 12:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-25772</guid>
		<description>今天也遇到了这样的情况，难得看到这么全的，多谢！</description>
		<content:encoded><![CDATA[<p>今天也遇到了这样的情况，难得看到这么全的，多谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rosa</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-21153</link>
		<dc:creator>Rosa</dc:creator>
		<pubDate>Tue, 04 Dec 2007 10:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-21153</guid>
		<description>thanks! Helps a lot^^</description>
		<content:encoded><![CDATA[<p>thanks! Helps a lot^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 码头红色0503</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-19583</link>
		<dc:creator>码头红色0503</dc:creator>
		<pubDate>Sun, 28 Oct 2007 23:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-19583</guid>
		<description>解决中</description>
		<content:encoded><![CDATA[<p>解决中</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-14975</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Wed, 23 May 2007 06:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-14975</guid>
		<description>伟大。。。</description>
		<content:encoded><![CDATA[<p>伟大。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: voipexplore</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-13102</link>
		<dc:creator>voipexplore</dc:creator>
		<pubDate>Mon, 02 Apr 2007 01:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-13102</guid>
		<description>做人厚道 看贴回帖
多谢帮助!!!!!!!</description>
		<content:encoded><![CDATA[<p>做人厚道 看贴回帖<br />
多谢帮助!!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kk</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-10193</link>
		<dc:creator>kk</dc:creator>
		<pubDate>Wed, 27 Dec 2006 09:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-10193</guid>
		<description>试试下面的步骤。
第一：看看是不是Directory配置错了，好像一般不会是这个原因
第二：看看User Group指定的用户有没有权限访问那个目录，否则用chown修改目录的所有者
第三：看看是不是seLinux搞得鬼，一般没事把selinux停了再重启linux，selinux的配置文件在/etc/selinux/config，改成disable
第四：我把所有的都做了发现还是不行，那么可能是apache是用root安装的，把apache卸了用一个非root用户重新安装。
我这几天试的就是这些问题，最后解决了</description>
		<content:encoded><![CDATA[<p>试试下面的步骤。<br />
第一：看看是不是Directory配置错了，好像一般不会是这个原因<br />
第二：看看User Group指定的用户有没有权限访问那个目录，否则用chown修改目录的所有者<br />
第三：看看是不是seLinux搞得鬼，一般没事把selinux停了再重启linux，selinux的配置文件在/etc/selinux/config，改成disable<br />
第四：我把所有的都做了发现还是不行，那么可能是apache是用root安装的，把apache卸了用一个非root用户重新安装。<br />
我这几天试的就是这些问题，最后解决了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jim</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-6584</link>
		<dc:creator>jim</dc:creator>
		<pubDate>Sun, 15 Oct 2006 02:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-6584</guid>
		<description>i love you.</description>
		<content:encoded><![CDATA[<p>i love you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holly</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-6419</link>
		<dc:creator>Holly</dc:creator>
		<pubDate>Thu, 12 Oct 2006 19:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-6419</guid>
		<description>You help me a lot. Thanks.</description>
		<content:encoded><![CDATA[<p>You help me a lot. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-5784</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 05 Oct 2006 07:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-5784</guid>
		<description>能有帮助我也很高兴：）欢迎常交流!</description>
		<content:encoded><![CDATA[<p>能有帮助我也很高兴：）欢迎常交流!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slashspirit</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-5767</link>
		<dc:creator>slashspirit</dc:creator>
		<pubDate>Wed, 04 Oct 2006 21:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-5767</guid>
		<description>U really helped me out! Thanx!</description>
		<content:encoded><![CDATA[<p>U really helped me out! Thanx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apache</title>
		<link>http://www.toplee.com/blog/93.html/comment-page-1#comment-144</link>
		<dc:creator>apache</dc:creator>
		<pubDate>Sat, 03 Jun 2006 07:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.toplee.com/blog/?p=93#comment-144</guid>
		<description>我也遇到过类似情况，弄了半天没有搞定，这下明白了。</description>
		<content:encoded><![CDATA[<p>我也遇到过类似情况，弄了半天没有搞定，这下明白了。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
