title: how to create virtual host on XAMPP
body: <p>I am sure this question is being asked many times but I am not encounter with a problem. I am using XAMPP where I configure Zend framework.</p>
  
  <p>XAMPP is running on <strong>port 8081</strong> as <strong>80</strong> is being occupied by some Windows process I need to use virtual host for that I configure with following code in <code>C:/xampp/apache/config/extra/httpd-vhosts.config</code> (or <code>C:/xampp/apache/conf/extra/httpd-vhosts.conf</code> in newer releases).</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName comm-app.local
  DocumentRoot "C:/xampp/htdocs/CommunicationApp/public"
  SetEnv APPLICATION_ENV "development"
      &lt;Directory "C:/xampp/htdocs/CommunicationApp/public"
          DirectoryIndex index.php
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;    
  </code></pre>
  
  <p>and also update the hosts file with <code>127.0.0.1 comm-app.local</code> and try to re-start apache but it is showing error.</p>
  
  <pre><code>15:03:01  [Apache]  Error: Apache shutdown unexpectedly.
  15:03:01  [Apache]  This may be due to a blocked port, missing dependencies, 
  15:03:01  [Apache]  improper privileges, a crash, or a shutdown by another method.
  15:03:01  [Apache]  Press the Logs button to view error logs and check
  15:03:01  [Apache]  the Windows Event Viewer for more clues
  15:03:01  [Apache]  If you need more help, copy and post this
  15:03:01  [Apache]  entire log window on the forums
  </code></pre>