This is what I use. Could it be better?

<VirtualHost 0.0.0.0:80>

ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/html/
ErrorLog /var/www/example.com/logs/error.log
CustomLog /var/www/example.com/logs/access.log combined


<Directory /var/www/example.com/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|svn|git)$">
Order Allow,Deny
Deny from all
</FilesMatch>


</VirtualHost>
link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.