找到D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf
把httpd.conf下
<Directory />
AllowOverride none
Require all denied
</Directory>
修改为:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>
然后找到#Include conf/extra/httpd-vhosts.conf,把前面#注释去掉,就可以直接在httpd-vhosts.conf配置
httpd-vhosts.conf下的配置:
<VirtualHost *:80>
DocumentRoot "D:/wamp/www"
ServerName localhost
<Directory "D:/wamp/www">
Options Indexes
Order allow,deny
Allow from all
Satisfy all
</Directory>
</VirtualHost>
记笔记,大神勿喷