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를 실행 중입니다. –