Options +FollowSymLinks
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
order deny,allow

Options +Indexes

IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=*

AuthType Basic
AuthName "? area"
AuthUserFile /var/www/html/log/.htpasswd
require valid-user