0
曾做过ZF2-tutorial.localhost的别名窗口使用WAMP,已经在驱动程序/ etc/hosts中添加它 还启用了虚拟主机设定:
Include conf/extra/httpd-vhosts.conf
已经根据
<VirtualHost *:80>
ServerName zf2-tutorial.localhost
DocumentRoot /path/to/zf2-tutorial/public
SetEnv APPLICATION_ENV "development"
<Directory /path/to/zf2-tutorial/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
当我打开ZF2-tutorial.localhost它显示了Zend页面如预期设定我的别名在这个文件中。但是,当我试图打开本地主机页面就说明这一点:
Forbidden
You don't have permission to access/on this server.
禁止在httpd.conf虚拟主机,可以打开本地主机,但无法打开ZF2-tutorial.localhost