I am creating a Zend website.The project (local) has got the following structure:

/application /remotes /sights

/public
 /css
 /images
 /js
 .htaccess
 index.php

Since the .htaccess and index.php files reside within th public directory,the general public directory should be identifiable by apache because the website's document root and root directory.

And So I is going to edit the "DocumentRoot from c:/wamp/www/ to c:/wamp/www/my-zend-application/public" within the httpd.conf file. But when I actually do and so i can't achieve my other projects inside "c:/wamp/www/".. can one keep both documentRoots?

EDIT I attempted with uncommenting the httpd.conf line about "httpd-vhost.conf" and edited the file:

[httpd-vhost.conf]

<VirtualHost *:80>
ServerAdmin webmaster@dum.com
DocumentRoot "C:\wamp\www\my-zend-app\application\public"
ServerName website.loc
ErrorLog "C:\wamp\www\my-zend-app\application\public\error.log"
CustomLog "C:\wamp\www\my-zend-app\application\access.log" common
</VirtualHost>

immediately after edited the home windows hosts file adding:

127.0.0.1 website.loc

but it is no longer working.I am running WAMPSERVER 2.1

Produce a second virtual host utilizing a different port or using ServerName (and editing hosts file to solve in your area.

The simpler the first is simply using different virtual hosts on different ports but don't forget also adding Listen yourPort around the primary config to create apache listen that port too.

Give a <Directory> Directive for your <VirtualHost> directive for that new document root

<VirtualHost *:80>
    ...
    <Directory "C:/wamp/www/my-zend-app/application/public">
        Options Includes Indexes FollowSymLinks
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>