Create vhost in wamp 2.5 in different directory on win7 returns forbidden error

故事扮演 提交于 2019-11-30 07:58:44

Your all setting is correct, but there are some changes in apache 2.4 (wamp 2.5 uses apache 2.4) that is the directive Allow was dropped in favor of new directive Require . The correct configuration will be with virtual host is

<VirtualHost *:80>
    ServerName www.skeltonapplicaiton-zf2.local
    ServerAlias skeltonapplicaiton-zf2.local
    DocumentRoot "E:\zf2"
    <directory "E:\zf2">
        Options Indexes FollowSymLinks
        AllowOverride all
        Require all granted
    </directory>
</VirtualHost>

So, Just Remove

 Order Deny,Allow
    Deny from all
    Allow from all

and use

Require all granted
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!