编辑器上传图片出现You don't have permission to access dataresourcekindeditorphpupload

xiaoxiao2021-02-28  23

上传图片出现You don't have permission to access /data/resource/kindeditor/php/upload_json.php on this server错误。 操作系统是:linux 服务器是:apache 经过排查原理是配置文件的问题 原配置文件是这样的 <DirectoryMatch "/alidata/www/xxx/(attachment|html|data)"> <Files ~ ".php"> Order allow,deny Deny from all //注意这里,无条件禁止访问 </Files> </DirectoryMatch> 把这段代码修改如下: <DirectoryMatch "/alidata/www/116/(attachment|html|data)"> <Files ~ ".php"> Order allow,deny #Deny from all //代码注销 Allow from all //修改这里 </Files> </DirectoryMatch> 这样问题就解决了,可以正常上传图片。
转载请注明原文地址: https://www.6miu.com/read-1100118.html

最新回复(0)