title: Magento and multiple domains
body: <p>I'm trying to build a store with multiple domains, based on the language: for example mysite.com (english), mysite.it (italian), mysite.ru (russian).</p>
  
  <p>I'm following <a href="http://www.magentocommerce.com/boards/viewthread/24833/" rel="nofollow">this</a> and <a href="http://www.crucialwebhost.com/kb/how-to-setup-multiple-magento-stores/" rel="nofollow">this</a>, but i think it could be a non-magento problem.</p>
  
  <p>My apache setup is the following: </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName mysite.rb.com
  ServerAlias mysite.it
  ServerAlias mysite.ru
  ...
  </code></pre>
  
  <p>the problem is that if I print to the log the http host, it's always:</p>
  
  <pre><code>[HTTP_HOST] =&gt; mysite.com
  </code></pre>
  
  <p>also if i type <code>mysite.it</code> or <code>mysite.ru</code>
  Am I doing anything wrong with apache? Should i declare another virtual host instead of an alias?</p>
  
  <p>If I can't recognize properly the requested host, I also can't show the correct store.</p>
  
  <p>PS: unsecure and secure base urls have been set to the correct domain name, each one for the proper language</p>
  
  <p>EDIT: now I am sure that it's not an apache problem. I deleted the directory of my project, and apache did not send a 302 redirect. So Magento is handling this redirect by itself</p>