在phpstudy_pro根目录下访问查看目录文件

很多人在将phpstudy转换为‘phpstudy_pro’集成环境后访问根目录,会返回无权限,看不到像以前的目录表
这个问题主要是因为我们对配置文件的了解不够

phpstudy_pro默认访问入口文件,所以我们在跟目录下存在index.php会访问成功

要想看到众多项目目录,解决方法为:
打开集成环境配置的localhost文件,我们发现配置为:

Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html

我们与原来的配置文件相比:

Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
DirectoryIndex index.php index.html

只要在options这一行添加一个indexes就行了

你可能感兴趣的:(环境)