不知道什么原因,用的宝塔windows面板,之前新建tp项目没有出现这种问题,今天突然新建一个项目出现了问题。具体不知道什么原因,报错信息如下:
[Sat Jan 04 11:07:14.006437 2020] [authz_core:error] [pid 7800:tid 1176] [client 127.0.0.1:6202] AH01630: client denied by server configuration: D:/wwwroot/active.demo/public/1.html
解决办法
配置文件中
<Directory "D:\wwwroot\active.demo\public">
Options FollowSymLinks ExecCGI
AllowOverride All
Require all granted
DirectoryIndex index.php default.php index.html index.htm default.html default.htm
</Directory>
修改为如下:
<Directory "D:\wwwroot\active.demo\public">
Options -Indexes +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
具体搞不懂是什么原因,我新建的站点使用上面的有问题的配置是没有问题的,而且都是tp5.0.24的项目,就是很奇怪了,又懂得人麻烦告知下,感谢
网友评论