title: multiple virtual hosts apache: access from outside LAN?
body: <p>I've configured 2 virtual hosts on my server (servername.dyndns.org). 
  How can I access it from outside LAN?</p>
  
  <p>This is my configuration:</p>
  
  <p><strong>1st Virtual Host</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ServerName website1.local
     DocumentRoot /var/www/website1
     DirectoryIndex index.html index.php
     &lt;Directory "/var/www/website1"&gt;
         AllowOverride All
         Allow from All
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>2nd Virtual Host</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ServerName website2.local
     DocumentRoot /var/www/website2
     DirectoryIndex index.html index.php
     &lt;Directory "/var/www/website2"&gt;
         AllowOverride All
         Allow from All
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>File Hosts</strong></p>
  
  <pre><code>127.0.0.1   localhost 
  127.0.0.1   website1.local
  127.0.0.1   website2.local
  </code></pre>
  
  <p>Inside LAN, I can access single virtual host digiting website1.local or website2.local. Outside, if I digit servername.dyndns.org, I reach the default welcome index of apache or the last in the hosts file!</p>
  
  <p>Thanks.</p>