we need two configurations , one for windows and the other for apache server
1-) 127.0.0.1 zendy in host file
2-)
httpd-vhosts.conf in C:\wamp\bin\apache\apache2.2.2\conf\extra
3-)
<VirtualHost *:80>
ServerAdmin admin@localhost
DocumentRoot "c:/wamp/www/"
ServerName localhost
ServerAlias www.localhost
ErrorLog logs/localhost-error.localhost-error_log
CustomLog logs/localhost-logs.localhost-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@zendy
DocumentRoot “c:/dev/zendy/public”
ServerName zendy
ServerAlias www.zendy
ErrorLog logs/zendy-error.localhost-error_log
CustomLog logs/zendy-logs.localhost-access_log common
<Directory “c:/dev/zendy/public”>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
done