打开安装wampserver的目录
我安装的目录是D盘
D:\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhosts.conf
文件下把里边的代码修改成下边的这样
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp64/www/API/public/
<Directory "D:/wamp64/www/API/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#
不需要别的东西就这样就好
网友评论