简体   繁体   English

多个虚拟主机不起作用

[英]Multiple Virtual Host not working

I have installed zend framework to my wamp but muiple vitual host not working in my wamp each time i opened for zend host my wamp home page get displayed 我已经为wamp安装了zend框架,但是每次我为zend主机打开时,多个虚拟主机都无法在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

plz help... 请帮助...

Try adding the port in the virtualhost settings and restart your webserver, then it should work. 尝试在virtualhost设置中添加端口,然后重新启动Web服务器,然后它应该可以工作了。 Later edit: Windows has the other slash if I recall ... 稍后编辑:如果我记得,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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM