问题一:
phpstudy You don't have permission to access / on this server.
解:
在vhosts.conf中,你配置的开始如下:
<VirtualHost *:80>
DocumentRoot "H:\practice"
ServerName practice.com
ServerAlias p.com
<Directory "H:\practice">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
去掉上面加粗的一行,改为如下:
<VirtualHost *:80>
DocumentRoot "H:\practice"
ServerName practice.com
ServerAlias p.com
<Directory "H:\practice">
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
重启phpstudy,就可以看到目录了,如下: