0

我已经在我的 wamp 上安装了 zend 框架,但是每次我为 zend 主机打开我的 wamp 主页时,多个虚拟主机都无法在我的 wamp 中工作

I have included the following code in httpd.conf file

NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1 >

DocumentRoot "C:/zendy/public"
ServerName zendy

<Directory "C:/zendy/public">

AllowOverride Autconfig FileInfo Indexes Limited options

Order Deny,Allow

Allow from 127.0.0.1

</Directory>
</VirtualHost>

I have also bind the address in my hosts file
    127.0.0.1 zendy

请帮助...

4

1 回答 1

0

尝试在虚拟主机设置中添加端口并重新启动您的网络服务器,然后它应该可以工作。稍后编辑:如果我记得,Windows 有另一个斜线......

NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:\zendy\public"
ServerName zendy
<Directory "C:\zendy\public">
AllowOverride Autconfig FileInfo Indexes Limited options
Order Deny,Allow
Allow from 127.0.0.1
</Directory>
</VirtualHost>
于 2013-07-27T18:22:34.620 回答