02-06-2009, 12:43 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: Feb 2009
Posts: 28
Thanks: 10
|
apache virtual host
Hi i need to setup a virtual host on my system. i am running xampp and saved following code in httpd.conf ,
added "127.0.0.1 zendblog.localhost"
and restarted apache but it is not working.
Code:
<VirtualHost *:80>
DocumentRoot "c:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/xampp/htdocs/zendblog/public"
ServerName zendblog.localhost
</VirtualHost>
in address bar i am writing zendblog.localhost
what i am doing wrong in the setup?
please advise
thanks
|
|
|
|