title: Multiple websites with multiple domain names on one single linux server
body: <p>I would like to host multiple websites with different domain names on one apache server. </p>
  
  <p>Lets say I have the following websites:</p>
  
  <pre><code>www.site1.com
  www.site2.com
  www.site3.com
  </code></pre>
  
  <p>I have got an ip address (such as: 89.x.x.x) which is linked to my /var/www directory where I can access from outside, and the structure would be:</p>
  
  <pre><code>/var/www/index.html // for www.site1.com
  /var/www/site2/index.html // for www.site2.com
  /var/www/site3/index.html // for www.site3.com
  </code></pre>
  
  <p>In my domain name configurations I have pointed the A-Record for each website to the same ip address. (I would like to avoid forwarding e.g. <a href="http://89.x.x.x/site2" rel="nofollow">http://89.x.x.x/site2</a>, because of the iframe problem that kills the website's responsiveness!)</p>
  
  <p>I have followed some examples of virtualhost and htaccess configurations, but none of them worked!</p>
  
  <p>As I am not very experienced in server configurations, I would appreciate for any suggestions to resolve this issue!</p>
  
  <p>Thanks heaps!</p>