I’m following Zend beginner tutorial. In that actually following need to be setup in the local server Apache httpd.conf in Linux PC.
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/usr/local/apache/htdocs/square/public"
ServerName square.localhost
</VirtualHost>
But I’ve a Windows 7 installed with Xampp in my local. Could anyone please help me on this how to put this in my local httpd.conf file.
Change
DocumentRoot "/usr/local/apache/htdocs/square/public"to a public folder of your project. For example, to"C:\XAMPP\www\square\public"or wherever your project’s public folder is located.Also make sure you have this line in your hosts file :
127.0.0.1 localhost