1
我注意到,當我用密碼保護文件夾時,它將它從目錄索引列表中隱藏起來。這是不可取的,但它是可以避免的嗎?用htaccess密碼保護的文件夾現在隱藏在目錄列表中?
這裏是我使用的根目錄,該代碼(這是密碼保護太)
AuthUserFile /var/www/vhosts/mywebsite.com/httpdocs/documents/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Access"
AuthType Basic
<limit GET>
require valid-user
</Limit>
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
</Files>
Options +Indexes
IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
IndexOrderDefault Ascending Name
HeaderName /documents/header.html
ReadmeName /documents/footer.html
IndexIgnore header.html phpinfo.php footer.html logo.png favicon.ico .htaccess .ftpquota .DS_Store icons *.log *,v *,t .??* *~ *#
感謝任何幫助!
嗨。感謝您的迴應。我正在運行CentOS 5 – 2012-03-31 13:45:26