title: External access web page with VirtualHosts and Wampserver
body: <p>I am a newbie in wampserver. </p>
  
  <p>I installed it and I can acesss web pages with localhost port 8000 without problems. Yes, I changed default port to 8000 and all works well with localhost.</p>
  
  <p>Now, I created a simple project web page and I need external access. Here is my settings:
  But I get the next error when I try to acesss remotely:</p>
  
  <pre><code>Forbidden
  
  You don't have permission to access / on this server.
  Apache/2.4.23 (Win64) PHP/5.6.25 Server at agenda.myvnc.com Port 8000
  //agenda.myvnc.com is my elastic IP host server
  </code></pre>
  
  <p>My sample project:</p>
  
  <pre><code>Folders:
  c:\wamp64\www
  ...........cloudappoint.myvnc.com(subfolder in www)
  
  File in cloudappoint.myvnc.com folder:  index.php
  </code></pre>
  
  <p>NOIP DNS:</p>
  
  <pre><code>- Host:cloudappoint.myvnc.com       
  - Target IP:XXX.XXX.XXX:8000(My host is located at amazon ec2 with elastic ip- XXXX.XXX.XXX)
  - type:URL
  </code></pre>
  
  <p>WampServer VirtualHosts:</p>
  
  <pre><code>&lt;VirtualHost *:8000&gt;
      ServerName cloudappoint.myvnc.com
      DocumentRoot c:/wamp64/www/cloudappoint.myvnc.com
      ErrorLog "logs/agenda-error.log"
      CustomLog "logs/agenda-access.log" common
      &lt;Directory  "c:/wamp64/www/cloudappoint.myvnc.com"&gt;
          Options +Indexes +FollowSymLinks +MultiViews
          AllowOverride All
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>EDITED: Here is my complete Virtual hosts file:</p>
  
  <pre><code>&lt;VirtualHost *:8000&gt;
      ServerName localhost
      DocumentRoot c:/wamp64/www
      &lt;Directory  "c:/wamp64/www/"&gt;
          Options +Indexes +Includes +FollowSymLinks +MultiViews
          AllowOverride All
          Require local
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost *:8000&gt;
      ServerName cloudappoint
      ServerAlias cloudappoint.myvnc.com
      DocumentRoot c:/wamp64/www/webagenda
      ErrorLog "logs/agenda-error.log"
      CustomLog "logs/agenda-access.log" common
      &lt;Directory "c:/wamp64/www/webagenda/"&gt;
          Options +Indexes +FollowSymLinks +MultiViews 
          DirectoryIndex index.php
          AllowOverride All
          Require all granted
     &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I am unable to acesss remotely cloudappoint.myvnc.com, but if I move</p>
  
  <pre><code>&lt;Directory "c:/wamp64/www/webagenda/"&gt;
              Options +Indexes +FollowSymLinks +MultiViews 
              DirectoryIndex index.php
              AllowOverride All
              Require all granted
   &lt;/Directory&gt;
  </code></pre>
  
  <p>out from VirtualHost, all works well. Then, I guess 3.06 has broken Directory into Virtual Hosts.</p>