title: Page not found on request url in zend 2 framework application
body: <p>I am newbie to zend framework and i am trying to configure the zend. I was sucessfully installed zendskeleton applicaion on <strong>window 7</strong> and <strong>XAMPP</strong></p>
  
  <p>After installation I am creating new module <strong>Album</strong> as per define in user guide. I was make all code and pages according to guide, but after that i was enable to open <strong>Album module</strong>. i got error 404 not found.</p>
  
  <p>here code</p>
  
  <ol>
  <li><p><strong>application.config</strong>      </p>
  
  <pre><code> return array(
  
   'modules' =&gt; array(
   'Application','Album',
   ),
  
  'module_paths' =&gt; array(
  './module',
  './vendor',
  ),
  
  'config_glob_paths' =&gt; array(
  'config/autoload/{,*.}{global,local}.php',
   ),
  
    ),
      );
  </code></pre></li>
  <li><p><strong>module.config</strong></p>
  
  <pre><code> return array(
      'controllers' =&gt; array(
       'invokables' =&gt; array(
       'Album\Controller\Album' =&gt; 'Album\Controller\AlbumController',
       ),
        ),
        'router' =&gt; array(
         'routes' =&gt; array(
           'album' =&gt; array(
            'type' =&gt; 'segment',
               'options' =&gt; array(
                   'route' =&gt; '/album[/][:action][/:id]',
                       'constraints' =&gt; array(
                           'action' =&gt; '[a-zA-Z][a-zA-Z0-9_-]*',
                               'id' =&gt; '[0-9]+',
                               ),
                               'defaults' =&gt; array(
                                   'controller' =&gt; 'Album\Controller\Album',
                                       'action' =&gt; 'index',
                           ),
                       ),
                   ),
               ),
           ),
  
                               'view_manager' =&gt; array(
                               'template_path_stack' =&gt; array(
                               'album' =&gt; __DIR__ . '/../view',
                               ),
                          ),
                      );
  </code></pre></li>
  <li><p><strong>Module.php</strong></p>
  
  <pre><code>namespace Album;
  
   // Add these import statements:
   use Album\Model\Album;
   use Album\Model\AlbumTable;
   use Zend\Db\ResultSet\ResultSet;
   use Zend\Db\TableGateway\TableGateway;
  
   class Module
   {
    // getAutoloaderConfig() and getConfig() methods here
  
  
  
   // Add this method:
    public function getServiceConfig()
     {
        return array(
        'factories' =&gt; array(
        'Album\Model\AlbumTable' =&gt; function($sm) {
         $tableGateway = $sm-&gt;get('AlbumTableGateway');
         $table = new AlbumTable($tableGateway);
         return $table;
     },
       'AlbumTableGateway' =&gt; function ($sm) {
        $dbAdapter = $sm-&gt;get('Zend\Db\Adapter\Adapter');
        $resultSetPrototype = new ResultSet();
        $resultSetPrototype-&gt;setArrayObjectPrototype(new Album());
        return new TableGateway('album', $dbAdapter, null, $resultSetPrototype);
      },
     ),
     );
     }
      }
  </code></pre></li>
  <li><p><strong>httpd-vhosts.conf</strong></p>
  
  <pre><code> &lt;VirtualHost *:81&gt;
   ServerName zf2-tutorial.localhost
   DocumentRoot "C:/xampp\htdocs/ZendSkeletonApplication/ZendSkeletonApplication-master/public"
   SetEnv APPLICATION_ENV "development"
   &lt;Directory C:/xampp\htdocs/ZendSkeletonApplication/ZendSkeletonApplication-master/public&gt;
    DirectoryIndex index.php
    AllowOverride All
    Order allow,deny
    Allow from all
    &lt;/Directory&gt;
    &lt;/VirtualHost&gt;
  </code></pre></li>
  <li><p>host entry at <strong>system32</strong></p>
  
  <pre><code>  127.0.0.1:8081       zf2-tutorial.localhost
  </code></pre></li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/ZOHwc.png" alt="enter image description here"></p>
  
  <p>How can i handle it.
  Thanks</p>