title: Zend Framework 2, vhosts and MAMP
body: <p>I think I've configured all files properly, but when I access the url: myapp.local, it points to the MAMP/htdocs/ directory instead of /MAMP/htdocs/ZendSkeletonApplication-master/public/ (going to this public directory displays correctly de zf2 example webpage), here is my configuration:</p>
  
  <p><strong>httpd-vhosts.conf</strong></p>
  
  <pre><code>&lt;VirtualHost *:8888&gt;
      ServerName myapp.local
      DocumentRoot "/Applications/MAMP/htdocs/ZendSkeletonApplication-master/public/"
      &lt;Directory "/Applications/MAMP/htdocs/ZendSkeletonApplication-master/public/"&gt;
          DirectoryIndex index.php
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>hosts</strong></p>
  
  <pre><code>127.0.0.1 myapp.local
  </code></pre>
  
  <p>Can someone tell me what I'm doing wrong? I want my base url to point at the /Applications/MAMP/htdocs/ZendSkeletonApplication-master/public/ directory, not at htdocs.</p>
  
  <p>Similar question here, but I can't get the answer. <a href="https://stackoverflow.com/questions/18715770/vhost-zend-framework-configuration-mamp-redirected-to-the-index-page-of-the-se">Vhost Zend Framework configuration MAMP - redirected to the index page of the server</a></p>
  
  <p>Thanks</p>