<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[apache限制ip和用户认证的混合使用方法一]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[服务器技术]]></category>
<pubDate>Wed, 15 Nov 2006 07:15:09 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	和使用.htaccess文件实现用户认证有所不同，主要不同之处如下：<br/>采用.htaccess文件认证目录关键配置如下:<br/>AllowOverride authconfig &nbsp; &nbsp; &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/>本文中的认证目录关键配置如下:<br/>AuthType Basic &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #定义认证区域和名称 &nbsp; &nbsp; &nbsp; &nbsp; <br/> &nbsp; &nbsp;AuthName "VSS"<br/> &nbsp; &nbsp;AuthUserFile C:PASSWDpasswd &nbsp; &nbsp;#定义认证文件名<br/> &nbsp; &nbsp;require user tyl test<br/> &nbsp;<br/>#DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"<br/>DocumentRoot "D:/vss" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#修改root文件夹<br/>#<br/># Each directory to which Apache has access can be configured with respect<br/># to which services and features are allowed and/or disabled in that<br/># directory (and its subdirectories). <br/>#<br/># First, we configure the "default" to be a very restrictive set of <br/># features. &nbsp;<br/>#<br/><Directory /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#设定/backup目录工作方式<br/> &nbsp; &nbsp;Options Indexes FollowSymLinks &nbsp; #Indexes表示当没有index页面时，显示文件夹<br/> &nbsp; &nbsp;AllowOverride None &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #不接受.htaccess中的設定 <br/> &nbsp; &nbsp;Order Deny,Allow &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #先禁止，再允许<br/> &nbsp; &nbsp;Deny from all &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#禁止所有计算机访问该文件夹<br/> &nbsp; &nbsp;Allow from 10.0.0.0/8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#只允许10.0.0.0/8网段访问该文件夹<br/># &nbsp; &nbsp;Allow from 10.0.0.52 10.0.0.24<br/></Directory><br/><Directory "D:vssdata"><br/> &nbsp; &nbsp;Options Indexes FollowSymLinks<br/> &nbsp; &nbsp;AllowOverride None<br/> &nbsp; &nbsp;Order Deny,Allow<br/> &nbsp; &nbsp;Deny from all<br/> &nbsp; &nbsp;Allow from 10.0.0.0/8<br/> &nbsp; &nbsp;AuthType Basic &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #定义认证区域和名称 &nbsp; &nbsp; &nbsp; &nbsp; <br/> &nbsp; &nbsp;AuthName "VSS"<br/> &nbsp; &nbsp;AuthUserFile C:PASSWDpasswd &nbsp; &nbsp;#定义认证文件名<br/> &nbsp; &nbsp;require user tyl test<br/></Directory><br/><Directory "D:vssusers"><br/> &nbsp; &nbsp;Options Indexes FollowSymLinks<br/> &nbsp; &nbsp;AllowOverride None<br/> &nbsp; &nbsp;Order Deny,Allow<br/> &nbsp; &nbsp;Deny from all<br/> &nbsp; &nbsp;Allow from 10.0.0.0/8<br/> &nbsp; &nbsp;AuthType Basic<br/> &nbsp; &nbsp;AuthName "VSS"<br/> &nbsp; &nbsp;AuthUserFile C:PASSWDpasswd<br/> &nbsp; &nbsp;require user test1<br/></Directory><br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/apache%25E8%25AE%25A4%25E8%25AF%2581/" rel="tag">apache认证</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] apache限制ip和用户认证的混合使用方法一]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>