title: Configuring Apache to allow disallow directory list
body: <p>I need to allow directory listing only for a particular directory: <code>/var/www/test</code>. I followed the steps given here <a href="http://wiki.apache.org/httpd/DirectoryListings" rel="nofollow">http://wiki.apache.org/httpd/DirectoryListings</a> but I am doing something wrong because of which I get <strong>Forbidden 403</strong> message if I browse <code>http://localhost/test</code>. Following is what I have in my /etc/apache2/sites-available/test. Can you spot any error with this config?</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot /var/www
      &lt;FilesMatch index.html&gt;
          deny from all
      &lt;/FilesMatch&gt;
      &lt;Directory /var/www/php/&gt;
          AllowOverride None
          deny from all
      &lt;/Directory&gt;
      &lt;Directory /var/www/&gt;
          AllowOverride None
      &lt;/Directory&gt;
      &lt;Directory /var/www/test&gt;
          Options +Indexes
          AllowOverride All
          Order deny,allow
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>