vhosts.conf配置文件中虚拟主机的配置如下,Options Indexes FollowSymLinks 后面添加 ExecCGI
<VirtualHost 192.168.10.82:80>
DocumentRoot "D:\phpStudy\WWW\www.bangbangdj.com"
ServerName www.bangbangdj.com
<Directory "D:\phpStudy\WWW\www.bangbangdj.com">
Options Indexes FollowSymLinks ExecCGI
DirectoryIndex index.html index.htm index.php
AllowOverride all
Require all granted
</Directory>
</VirtualHost>