Apache ~ Password Log in (Apache密碼驗證登入)

其實看這網站就好了.........XD
http://blog.chinaunix.net/u/9817/showart_290572.html


但我另外貼一下我試成功的設定檔~

在httpd.conf多加
------------------------------------------------------------------------------------------------
<Directory "d:/wamp/www/test/">
Options Indexes MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
------------------------------------------------------------------------------------------------


d:/wamp/www/test/.htaccess
------------------------------------------------------------------------------------------------
AuthName "frank share web"
AuthType Basic
AuthUserFile D:/wamp/www/test/.htpasswd
<LIMIT GET>
require valid-user
</LIMIT>
------------------------------------------------------------------------------------------------


d:/wamp/www/test/.htpasswd
------------------------------------------------------------------------------------------------
bitty:1234
------------------------------------------------------------------------------------------------

沒有留言: