title: Symfony 2 on virtual hosts
body: <p>I have a problem here with Symfony 2. I want to have virtual host on Windows Vista PC, so I can access my Symfony application like this <code>myapp.local.com</code>. 
  What I have tried: </p>
  
  <ul>
  <li><p>I added these lines to hosts file</p>
  
  <pre><code>127.0.0.1 local.com    
  127.0.0.1 myapp.local.com
  </code></pre></li>
  <li><p>These I added to apache httpd-vhosts.conf</p>
  
  <pre><code>&lt; VirtualHost myapp.local.com:80 &gt;
     DocumentRoot "d:/data/www/myapp/web"
     ServerName myapp.local.com
     Alias /sf /$sf_symfony_data_dir/web/sf
  &lt; Directory "/$sf_symfony_data_dir/web/sf" &gt;
     AllowOverride All
     Allow from All
  &lt; /Directory &gt;
  &lt; Directory "d:/data/www/myapp/web" &gt;
     AllowOverride All
     Allow from All
  &lt; /Directory &gt;
  &lt; /VirtualHost &gt;
  </code></pre></li>
  </ul>
  
  <p>but when I write <code>myapp.local.com</code> in my browser, it brings the index of my <code>www</code> directory. What am I doing wrong?</p>