I use Apache 2.2 as WebDAV file server to a bunch of Mac and MS Windows clients. Unfortunately both clutter the filesystem with files like .DS_Store or thumbs.db.

Since hte files distract my users i want to hide them from directory listings. Unfortunately the standard way of hiding files in Apache (via IndexIgnore) seems not to work via WebDAV.

Is there any other way to hide files?

link|improve this question
feedback

2 Answers

Add this to your apache config file below the DocumentRoot directive.

<FilesMatch '^\.[Dd][Ss]_[Ss]'>
Order allow,deny
Deny from all
</FilesMatch>

<FilesMatch '\.[Dd][Bb]'>
Order allow,deny
Deny from all
</FilesMatch>
link|improve this answer
feedback

Apache can style the very simplistic display of SVN repositories with svnindex.xsl/svnindex.css (http://code.google.com/p/tortoisesvn/source/browse/trunk/contrib/svnindex/ is as good a source as any). Dump those in the web accessable root directory, and you will at least get pretty output.

XSLT isn't exactly an easy language, but I'm sure you can skip patterns, and just not print out what you don't want. Alternatively, I suppose you can just add javascript, which rewrites the page content after the XSLT is finished.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.