1.Create a folder where you want to create a host.
i am created like:C:\websites
2.Then Go to Your Wamp folder open bin->apache->apache2.2.22->Conf open httpd.conf file
Search #Include conf/extra/httpd-vhosts.conf then clear comment(#).
Then Save httpd.conf file..
3.Open "Extra" Folder of same Directory Open httpd-vhosts.cof file.
Then Add Name VirtualHost:<Host Name>
Then Add Host Details:
<VirtualHost *:80>
ServerName zf-tutorial.localhost
DocumentRoot c:/websites/zf-test/public
<Directory "c:/websites/zf-test/public">
AllowOverride All
</Directory>
</VirtualHost>
* zf-test->public is my project's main directory.
4.Then goto c:\windows\system32\drivers\etc\ open Hosts file.
Then add 127.0.0.1 <virtualhost Name> in my case i am using zf-tutorial.localhost.
DONE..
No comments:
Post a Comment