title: Setting up varnish on same server as webserver
body: <p>Our company recently decided to start working with the Varnish HTTP accelerator. Most important why we chose this solution was because we are a company that specializes in building web shops (Magento Enterprise) => Magento has a commercial plugin that works together with varnish.</p>
  
  <p>The varnish configuration is already present on our testing environment, which contains 1 (software) load balancer running a varnish instance, 2 apache webservers and 1 storage + 1 mysql server.</p>
  
  <p>However now the time has come to add the Varnish to our development environment (virtualbox with 1GB of ram running debian which has the database, webserver, files running all on the same machine)</p>
  
  <p>Could anyone post a default.vcl configuration file for this setup?</p>
  
  <p>Apache2 runs on port 80.</p>
  
  <p>Thanks in advance,
  Kenny</p>
  
  <p><strong>EDIT: I found and posted <a href="https://stackoverflow.com/a/18185847/458169">the solution</a> below.</strong></p>