编辑器上传图片出现You don't have permission to access /data/resource/kindeditor/php/upload_json.php on this s

来源:互联网 发布:网络上消费者投诉电话 编辑:程序博客网 时间:2024/06/05 07:02
上传图片出现You don't have permission to access /data/resource/kindeditor/php/upload_json.php on this server错误。
操作系统是:linux
服务器是:apache

shopnc B2B2C编辑器上传图片出现You don't have permission to access /data/resource/kindeditor/php/upload_json.php on this server

经过排查原理是配置文件的问题

原配置文件是这样的

<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>

这样问题就解决了,可以正常上传图片。
阅读全文
0 0
原创粉丝点击