真正的问题是,我不是非常好的基础设施,但你可能无法帮助我。
我今天的问题是我想在Win 7上configuration一个虚拟服务器。我正在使用Zend Server,我正在学习Zend框架入门教程http://framework.zend.com/manual/en/。 learning.quickstart.create-project.html 。
当我将下面的configuration添加到我的http.conf文件的底部时,当我尝试访问http:// localhost /时,我得到了403禁止。 这是configuration:
<VirtualHost *:80> ServerName openco.local DocumentRoot /ZendFW-Projects/opencoV2/public <Directory /ZendFW-Projects/opencoV2/public> DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
有任何想法吗? 本教程说确保NameVirtualHost被定义,但是我不确定这个指令应该采用什么格式,所以我把它放了出来。 我看到其他相关的教程也离开了,所以我不认为这是问题。
当然,我编辑了我的etc / hosts
任何帮助非常感谢!
你实际上需要NameVirtualHost指令。 你可以把它放在你的configuration文件的顶层,在上面的代码片段之外:
NameVirtualHost *:80
您可能还需要本教程中提到的SetEnv指令。