How was <Directory ...> directives are added?
If you add those via Apache Style configuration in LSWS web console, it wont work properly, you should use LSWS native Context configuration instead.
<DirectoryMatch "\.(svn|git)">
Order allow,deny
Deny from all
</DirectoryMatch>
normal access to a file will return "500 Internal Server Error". without "<DirectoryMatch" directive, will be "200 OK".
and there is an entry in error_log:
Code:
[Tue May 11 04:42:33 2010] [alert] [client x.x.x.x] /usr/local/apache/htdocs/.htaccess: <DirectoryMatch not allowed here
Wow - that advice is given out all over the web and I guess everyone just repeats it without checking if it really can be used in .htaccess or not. Weird.