在研究shopnc b2b2c上传服务器后,上传图片出现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> 这样问题就解决了,可以正常上传图片。 |
原创文章,作者:管理员,如若转载,请注明出处:http://www.bajiege.com/archives/161.html