title: Configuring VirtualHost together with localhost on VertrigoServ 2.29
body: <p>I use <a href="http://vertrigo.sourceforge.net/" rel="nofollow">VertrigoServ</a> as my Apache - MySql - PHP stack.
  Up till now, I used to put all sites in the /www folder and access them by the url <code>http://localhost/sitename</code>.</p>
  
  <p>Now I'm developing a multilanguage site. The site's idiom will be set according to the domain. So I need to set up a virtual host for this site, but I need to still have access to the other sites using the localhost url.</p>
  
  <p>I added the following code to conf/extra/httpd-vhosts.conf:</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost dev.mysite.com.br dev.mysite.uy&gt;
      ServerAdmin admin@mysite.com.br
      DocumentRoot "C:\sites\mysite"
      ServerName dev.mysite.com.br
      ServerAlias dev.mysite.uy
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>My default localhost root folder is <code>C:\sites</code></p>
  
  <p>An example of the httpd.conf used by VertrigoServ can be seen <a href="https://dl.dropboxusercontent.com/u/4169356/httpd.conf" rel="nofollow">here</a>, and this and example of the <a href="https://dl.dropboxusercontent.com/u/4169356/vertrigo.conf" rel="nofollow">vertrigo.conf</a> file.</p>
  
  <p>With this config, I need to put a copy of vertrigo.conf inside <code>C:\sites\mysite\conf</code>.
  Yet, after this is done, a request to <code>http://localhost</code> serves the site specified by this VirtualHost.</p>
  
  <p>So, how can I use virtual hosts and still access older projects the old way? If I could avoid copying vertrigo.conf, it would be good!</p>
  
  <p>Thanks!</p>