2012-03-31 54 views
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 .??* *~ *# 

感謝任何幫助!

回答

0

在'nix操作系統中,缺省情況下,前導期會隱藏目錄。你在用什麼版本?在Ubunutu中,Nautlius中有一個選項可顯示文件夾的隱藏文件。

+0

嗨。感謝您的迴應。我正在運行CentOS 5 – 2012-03-31 13:45:26