title: Errors not written to Apache error log
body: <p>I've had a problem with some Apache web server error logs. </p>
  
  <p>I have a virtually hosted website scotthermmann.loc on my computer. After I manually clear an error log, using </p>
  
  <pre><code>sudo cat /dev/null &gt; scotthermmann.loc-error_log
  </code></pre>
  
  <p>or by opening the file in emacs &amp; deleting all content, errors no longer get logged to the file. I've tried using</p>
  
  <pre><code>sudo apachectl restart
  </code></pre>
  
  <p>to solve the problem, but it doesn't solve it. Logging out &amp; back in doesn't solve it either. What does solve it is restarting the computer, but I don't want to do that after every time I clear an error log.</p>
  
  <p>This isn't the case for every website I host. I have another website barefootfool.loc. After I clear that error log, I don't have any problems.</p>
  
  <p>Both virtual sites have essentially the same setup in the httpd-vhosts.conf file. For scottherrmann.loc:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "/Users/dan/Sites/scottherrmann.com"
      ServerName scottherrmann.loc
      ServerAlias www.scottherrmann.loc
      ErrorLog "/private/var/log/apache2/scottherrmann.loc-error_log"
      CustomLog "/private/var/log/apache2/scottherrmann.loc-access_log"
  
      &lt;Directory "/Users/dan/Sites/scottherrmann.com"&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Order Allow,Deny
          Allow from all 
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And for barefootfool.loc:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "/Users/dan/Sites/barefootfool.com"
      ServerName barefootfool.loc
      ServerAlias www.barefootfool.loc
      ErrorLog "/private/var/log/apache2/barefootfool.loc-error_log"
      CustomLog "/private/var/log/apache2/barefootfool.loc-access_log"
  
      &lt;Directory "/Users/dan/Sites/barefootfool.com"&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Order Allow,Deny
          Allow from all 
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Does anyone have an idea what could be causing the problem?</p>