简体   繁体   English

Apache 2.2.17 + Wamp + Windows 7 +在配置虚拟主机时给出403

[英]Apache 2.2.17 + wamp + windows 7 + gives 403 when configure virtual host

<VirtualHost *:80>
    DocumentRoot "D:/projects/RnD"
    ServerName dev.ei-rnd.loc
    <Directory "D:/projects/RnD">
        Options FollowSymLinks
        AllowOverride all
        Order Deny,Allow
        Allow from all
    </Directory>
</VirtualHost>

Apache : 2.2.17 阿帕奇:2.2.17

I have written above code to configure virtualhost in newly installed wamp. 我已经编写了上面的代码以在新安装的Wamp中配置virtualhost。 It gives me 403 error when dev.ei-rnd.loc hit on browser. 当dev.ei-rnd.loc在浏览器上命中时,它给我403错误。

Please Note: 请注意:

Already tried below options 已经尝试过以下选项

  1. uncomment Include conf/extra/httpd-vhosts.conf 取消注释包括conf / extra / httpd-vhosts.conf

Solution

<VirtualHost *:80>
    DocumentRoot "D:/projects/RnD"
    ServerName dev.ei-rnd.loc
    <Directory "D:/projects/RnD">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride all
        Order Deny,Allow
        Allow from all
    </Directory>
</VirtualHost>

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

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