简体   繁体   中英

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

I have written above code to configure virtualhost in newly installed wamp. It gives me 403 error when dev.ei-rnd.loc hit on browser.

Please Note:

Already tried below options

  1. uncomment Include 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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