我刚刚开始学习Zend并参考 http://framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html 创建我的第一个应用程序。
我按照创建虚拟主机的所有步骤进行了操作但未成功。
我的代码:
<VirtualHost 127.0.0.1:80>
ServerName zendapp.localhost
DocumentRoot C:\Program Files\Zend\Apache2\htdocs\zendapp\public
SetEnv APPLICATION_ENV "development"
<Directory C:\Program Files\Zend\Apache2\htdocs\zendapp\public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
在C:\ Program Files \ Zend \ Apache2 \ conf \ extra \ httpd-vhosts.conf中添加此代码后,我重新启动了服务器并输入了“zendapp.localhost”
我收到一条消息“无法找到zendapp.localhost”
任何人都可以帮助我一直在努力奋斗。 正如我所说,我对Zend非常新。