Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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

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

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

Apache can style the very simplistic display of SVN repositories with svnindex.xsl/svnindex.css ( 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.

share|improve this answer
This is not useful, since the OP is talking about the WebDAV clients in both operating systems (not the HTML view generated by Apache) – parasietje Nov 3 '14 at 13:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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