title: Enable htaccess error on Ubuntu 12.04 with Apache2
body: <p>I tried to enable htaccess. I changed:</p>
  
  <pre><code>&lt;Directory /var/www/abc.biz/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>&lt;Directory /var/www/abc.biz/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>But I'm getting 500 (Internal Server) error. Why?</p>
  
  <p>Here is my <code>/etc/apache2/sites-available/default</code> file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAdmin admin@abc.biz
  
  DocumentRoot /var/www/abc.biz
  &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride None
  &lt;/Directory&gt;
  &lt;Directory /var/www/abc.biz/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  
  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  &lt;Directory "/usr/lib/cgi-bin"&gt;
      AllowOverride None
      Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  
  ErrorLog ${APACHE_LOG_DIR}/error.log
  
  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel warn
  
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  Alias /doc/ "/usr/share/doc/"
  &lt;Directory "/usr/share/doc/"&gt;
      Options Indexes MultiViews FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from 127.0.0.0/255.0.0.0 ::1/128
  &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>