title: Setup virtualhost where localhost working on 81 port in apache zendserver
body: <p>I have installed zendserver and it is running on <strong><code>http://localhost:81/</code></strong>.  </p>
  
  <p>Now I have created <strong>zend framework 2</strong> project in <strong>Apache2/htdocs/zend2</strong> and accessing this through <code>http://localhost:81/zend2/public</code>.</p>
  
  <p>I have to set virtual host for this like <strong>zend.local</strong> but it is not working.</p>
  
  <p>In httpd.conf file </p>
  
  <pre><code>NameVirtualHost *:81
  &lt;VirtualHost *:81&gt;
  &lt;Directory "C:\Program Files/Zend/Apache2/htdocs/zend2/public"&gt;
   Options FollowSymLinks
   AllowOverride All
   Order allow,deny
   Allow from all
  &lt;/Directory&gt;
  DocumentRoot C:\Program Files/Zend/Apache2/htdocs/zend2/public/
  ServerName  zend.local
  ServerAlias zend.local
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and In hosts file </p>
  
  <pre><code>127.0.0.1 zend.local    
  </code></pre>
  
  <p>I have tried all possibilities but nothing works.</p>