title: enable mod_rewrite logs in apache running on ubuntu
body: <p>I tried to enable logging. I enabled mod rewrite and restarted the computer, for some reason the rewrite log doesn't write to the destination directory /var/lib/log</p>
  
  <p>I'm wondering if anyone had done it before successfully, please post it here so I can give it a try. </p>
  
  <pre><code>cat /etc/issue
  Ubuntu 16.04.1 LTS \n \l
  
  apache2 -v
  Server version: Apache/2.4.18 (Ubuntu)
  Server built:   2016-07-14T12:32:26
  </code></pre>
  
  <hr>
  
  <pre><code>/var/log/apache2$ ls
  access.log        access.log.3.gz  error.log.1      error.log.4.gz
  access.log.1      access.log.4.gz  error.log.10.gz  error.log.5.gz
  access.log.10.gz  access.log.5.gz  error.log.11.gz  error.log.6.gz
  access.log.11.gz  access.log.6.gz  error.log.12.gz  error.log.7.gz
  access.log.12.gz  access.log.7.gz  error.log.13.gz  error.log.8.gz
  access.log.13.gz  access.log.8.gz  error.log.14.gz  error.log.9.gz
  access.log.14.gz  access.log.9.gz  error.log.2.gz   other_vhosts_access.log
  access.log.2.gz   error.log        error.log.3.gz
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName odyss{shadow}.odysseysafaris.com
      ServerAdmin 
      DocumentRoot /var/www/html/{shadow}
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
      &lt;Directory "/var/www/html/{shadow}"&gt;
          Options FollowSymLinks
          AllowOverride All
      Order allow,deny
          Allow from all
  
      &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>