apache - VIrtualHost: Different hosts point to the same location -


I am trying to set up virtual hosts for two Zend Framework applications. I started by changing the system32 host file

contains the following lines:

  127.0.0.1 localhost # :: 1 localhost 127.0.0.1 Quickstart   

After this, I proceeded with changing the httpd-vhosts.conf file. Its current content:

  & lt; VirtualHost *: 80 & gt; ServerAdmin postmaster@dummy-host2.localhost DocumentRoot "G: \ workspace \ Andrew \ ProjManer \ public" server name local host server algebla localhost error log "log / localhost-error.log" custom log "log / localhost-access .log" combined & Lt; / VirtualHost & gt; & Lt; VirtualHost *: 80 & gt; Postmaster@dummy-host2.localhost DocumentRoot ServerAdmin "G: \ Vertical \ Andrew \ Quick Start \ Public" Server Name Quick Start Server's Quick Start Errorlog "Login / Instant Start-error.log" CustomLog "Login / Instant Start-Access. Log "combined" / VirtualHost & gt;   

If I do not add a virtual host before the local host, then I get a "Forbidden Login 403 Error Message" .
The problem is that both locations should be in one place, local host How should I work for another virtual host? I used flushdns as well.

You do not need the server in them unless you want to quickly say quickstart2 to start In that case, you will have ServerlessQuicktart 2. You are denied access because your document root in your httpd.conf is not an index.php or that virtualhost is not an index.php and you have set -exexes

that host and host file other than virtualhost Okay try restarting your browser and try restarting Apache.

Comments