title: php don't show images on second virtual host
body: <p>I have an apache2 server with 2 virtual hosts defined (with same options):
  - first is the production one, on www.domain.com, which works fine
  - second is the development one, on dev.domain.com, which works almost fine, except that images returned by php doesn't show.
  Images directly linked to files (img src or css) work fine.</p>
  
  <p>The function to show images is quite simple : </p>
  
  <pre><code>$data = $this-&gt;image_model-&gt;get_image_blob($id);    
  header('Content-Type: image/jpeg');                    
  echo $data; 
  </code></pre>
  
  <p>At first, I thought there was a problem with data, but no, if I read data from an actual jpeg file, it doesn't show either.</p>
  
  <p>An interesting thing is that if I create an image from data with :</p>
  
  <pre><code>$im = imagecreatefromstring($data);
  </code></pre>
  
  <p>imagesx and imagesy return correct image size.
  But I still can't display the image. And there is no error.</p>
  
  <p>Any idea about what happens? </p>