title: .htaccess:order not allowed here
body: <p>I am trying to put authentication for accessing my document root directory in apache2... 
  Here's my config file</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
          ServerAdmin webmaster@localhost
          AccessFileName .htaccess
          DocumentRoot /home/user/workspace
          &lt;Directory /&gt;
                  Options FollowSymLinks
                  AllowOverride None.htaccess
          &lt;/Directory&gt;
          &lt;Directory /home/vishu/workspace&gt;
                  Options Indexes FollowSymLinks MultiViews
                  AllowOverride AuthConfig
                  Order allow,deny
                  allow from all
          &lt;/Directory&gt;
  ......
  ......
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>here's my .htaccess file in /home/user/workspace folder:</p>
  
  <pre><code>&lt;FilesMatch &gt;
  .....
  &lt;/FilesMatch&gt;
  
      AuthType Basic
      AuthName "MY ZONE"
      #AuthBasicProvider file
      AuthUserFile /home/vishu/workspace/passwordfile
      AuthGroupFile /dev/null
      Require valid-user
  .....
  ...
  </code></pre>
  
  <p>Apache gives <code>.htaccess:order not allowed here</code> error and I am getting 500 error from browser.</p>