title: setup a virtual host for Zend Framework 2 application
body: <p>I'm new to Zend Framework 2, and I started with installing a ZF2 Skeleton as shown in this page : <a href="https://github.com/zendframework/ZendSkeletonApplication" rel="nofollow">https://github.com/zendframework/ZendSkeletonApplication</a></p>
  
  <p>I'm using EasyPHP, and I want to setup a virtual host to point to the <code>public/</code> directory of the ZF2 project, so in the httpd-vhosts.conf I added the following configuration :</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName zf2-app.localhost
      DocumentRoot "C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\skeleton-application\public"
      &lt;Directory "C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\skeleton-application\public"&gt;
          DirectoryIndex index.php
          AllowOverride All
          Order allow,deny
          Allow from all
          &lt;IfModule mod_authz_core.c&gt;
          Require all granted
          &lt;/IfModule&gt;
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>After I restarted EasyPHP and entered <code>http://zf2-app.localhost/</code> I get the localhost for EasyPHP, so in order to access the ZF2 application I have to access this address : <code>http://zf2-app.localhost/skeleton-application/public/</code></p>
  
  <p>How can I solve this problem ?</p>