title: Accessing Virtual Host from outside LAN
body: <p>I'm setting up a web development platform that makes things as easy as possible to write and test all code on my local machine, and sync this with my web server.  I setup several virtual hosts so that I can access my projects by typing in "project" instead of "localhost/project" as the URL.</p>
  
  <p>I also want to set this up so that I can access my projects from any network.  I signed up for a DYNDNS URL that points to my computer's IP address.  </p>
  
  <p>This worked great from anywhere before I setup the virtual hosts.  Now when I try to access my projects by typing in my DYNDNS URL, I get the 403 Forbidden Error message, "You don't have permission to access / on this server."</p>
  
  <p>To setup my virtual hosts, I edited two files - hosts in the system32/drivers/etc folder, and httpd-vhosts.conf in the Apache folder of my WAMP installation.</p>
  
  <p>In the hosts file, I simply added the server name to associate with 127.0.0.1.  I added the following to the http-vhosts.conf file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      DocumentRoot "c:/wamp/www/ladybug"
      ServerName ladybug
      ErrorLog "logs/your_own-error.log"
      CustomLog "logs/your_own-access.log" common
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      DocumentRoot "c:/wamp/www"
      ServerName localhost
      ErrorLog "logs/localhost-error.log"
      CustomLog "logs/localhost-access.log" common
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Any idea why I can't access my projects from typing in my DYNDNS URL?  Also, is it possible to setup virtual hosts so that when I type in <a href="http://projects" rel="nofollow noreferrer">http://projects</a> from a random computer outside of my network, I access url.dyndns.info/projects (a.k.a. my WAMP projects on my home computer)?</p>
  
  <p>Help is much appreciated, thanks!</p>