title: apache centos fails to serve images - premature end of script headers
body: <p>I can't figure out why my apache centos server fails to serve images.  I see "premature end of script headers" message in the error_log file.  Text is served fine as the first line of my perl script is: </p>
  
  <pre><code>#! /usr/bin/perl -w
  </code></pre>
  
  <p>and the first line I send is</p>
  
  <pre><code>print "Content-type: text/html\n\n";
  </code></pre>
  
  <p>The permissions on the files and folder is 755.  I've tried .jpg and .gif files but neither works.</p>
  
  <p>I've added</p>
  
  <pre><code>AddType image/gif .gif .GIF
  AddType image/jpeg .jpeg .jpg .jpe .JPG
  </code></pre>
  
  <p>To the /etc/httpd/conf/httpd.conf file.
  I've uncommented "#EnableSendfile off" in the same file and restarted the server and flushed the browser cache.  Nothing worked.</p>
  
  <p>Any other ideas?</p>