title: Magento: share db between 2 vhost
body: <p>i have 2 vhost:</p>
  
  <p>dev.example.com, dev1.example.com</p>
  
  <p>and i don't want to have 2 db, but only 1.</p>
  
  <p>So i connect both vh to the same db, but when i go to dev1.example.com i redirected to dev.example.com.</p>
  
  <p>I think due to "web/secure/url" and "web/unsecure/url" that i setted as dev.example.com.</p>
  
  <p>I'm trying to make a switching in the code, but don't find the point where magento set the url.</p>
  
  <p>Have you some idea or done some switch code to make this behaviour?</p>
  
  <p>thx
  Luca</p>
  
  <p>EDIT: the vhosts have a different document root, they are 2 different developer environment.</p>