title: How to use DAV and DirectoryIndex in Apache 2.4?
body: <p>In my apache configuration I have a virtual host configured like this:</p>
  
  <pre><code>Alias /mediamanager /storage/files/mediamanager
  &lt;Directory /storage/files/mediamanager&gt;
    DirectoryIndex /mediaManagerIndex.php
    DAV On
    # ... And some authentication directives ... #
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The idea is that someone can access the files both by a WebDAV-Client and also a simple web browser in which case some pretty directory view is generated by a PHP script.</p>
  
  <p>That worked great in Apache 2.2, but recently I upgraded to Apache 2.4 and now it is broken. I highly suspect I I suffer from <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=54914">this bug</a> which is already 2 years old and no fix in sight. The proposed workaround to add:</p>
  
  <pre><code>&lt;Limit PROPFIND&gt;
    DirectoryIndex never-encounterable-file-name.html
  &lt;/Limit&gt;
  </code></pre>
  
  <p>Does not work for me. Probably because I still want to have a directory index. If I remove my <code>DirectoryIndex</code> altogether WebDAV works again (no index.html or similar files exists in this directory) but of course I loose the ability to use my PHP file as directory index. I tried to specify my DirectoryIndex in a <code>&lt;Limit GET&gt;</code> but this had no effect.</p>
  
  <p>Is there any way to get both DAV and DirectoryIndex to work simultaneously in Apache 2.4 on Debian (if anyhow possible without changing the source code and recompiling)?</p>