<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[apache_Linux_win目录认证]]></title> 
<author> &lt;&gt;</author>
<category><![CDATA[Apache]]></category>
<pubDate>Tue, 14 Aug 2007 14:04:51 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	<strong>Linux</strong><br/>1、/www/client/photo<br/>2、vi httpd.conf<br/><div class="code">&lt;Directory &quot;/www/client/photo&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Options Indexes MultiViews<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AllowOverride AuthConfig<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order allow,deny<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allow from all<br/>&lt;/Directory&gt;<br/></div><br/>3、vi /www/client/photo/.htaccess<br/>AuthName "请输入访问相册的帐号密码："<br/>AuthType Basic<br/>AuthUserFile /www/client/photo/.htpasswd<br/>require valid-user<br/>4、htpasswd -c /var/www/test/.htpasswd ltsnet<br/>输入密码，ok。<br/>修改密码用：htpasswd -m .htpasswd ltsnet<br/>5、/usr/local/apache/bin/apachectl restart<br/><strong>WIN2000</strong><br/>1、d:&#92;soft<br/>2、vi httpd.conf<br/><div class="code"><br/>&lt;Directory &quot;d:/soft&quot;&gt;<br/>&nbsp;&nbsp;AuthType Basic<br/>&nbsp;&nbsp;AuthName 请输入访问密码：<br/>&nbsp;&nbsp;AuthUserFile c:/Apache2/user<br/>&nbsp;&nbsp;require valid-user<br/>&nbsp;&nbsp;Order allow,deny<br/>&nbsp;&nbsp;Allow from all<br/>&nbsp;&nbsp;#下面为目录列表<br/>&nbsp;&nbsp;Options Indexes MultiViews<br/>&nbsp;&nbsp;IndexOptions FancyIndexing ScanHTMLTitles NameWidth=128 DescriptionWidth=256 HTMLTable VersionSort FoldersFirst<br/>&nbsp;&nbsp;IndexOrderDefault Ascending Date<br/>&lt;/Directory&gt;<br/></div><br/>3、c:&#92;Apache2&#92;bin>htpasswd.exe -c c:&#92;&#92;apache2&#92;&#92;user ltsnet<br/>输入密码，ok。<br/>4、重启apache服务<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">net stop apache2<br/>net start apache2</div></div><br/>Tags - <a href="https://blog.liuts.com/tags/%25E7%259B%25AE%25E5%25BD%2595%25E8%25AE%25A4%25E8%25AF%2581/" rel="tag">目录认证</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] apache_Linux_win目录认证]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>