I need your help here in creating a virtual host in wampserver. In office I can create a virtual hosts but when I try to create in my laptop it doesn\'t work. I still can\'t
I was installing the zend framework on my local wamp using apache server. First go and decide what will be your domain name for the local url. Ex->zend_tutorial then go and open the file located at "C:\WINDOWS\system32\drivers\etc\"
hosts
write
127.0.0.1 (use one tab space) zend_tutorial
then go to the folder located at
D:\wamp\bin\apache\Apache2.2.17 (whatever is your version) \conf\
and open the file
httpd.conf
and search for text
Include conf/extra/httpd-vhosts.conf
and uncomment it by removing the # tag from the start of the line.Save the file and close it. Now go to another folder located at
D:\wamp\bin\apache\Apache2.2.17\conf\extra
and open the file
httpd-vhosts.conf
and paste the code below at the last in this file
ServerAdmin webmaster@localhost
DocumentRoot "D:\wamp\www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
ServerName zend_tutorial
DocumentRoot "D:\wamp\www\(your project folder name)\public"
SetEnv APPLICATION_ENV "development"
DirectoryIndex index.php
AllowOverride all
Order Allow,Deny
Allow from all
and restart the wamp, now write the zend_tutorial in the browser and you will see the things working.