读书人

Makingware系统搭建时的配置异常解决笔

发布时间: 2012-10-17 10:25:47 作者: rapoo

Makingware系统搭建时的配置错误解决笔记
从网上下载安装了Makingware(Magentochina的合作伙伴Makingware专门定制给中国国内使用的一套基于Magento的电子商务程),但安装成功后,登录magento后台,页面上出现提示信息:

Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider.

上网查阅后,大概就是跟app/etc/local.xml 的访问权限有关

浏览器中输入 http://site url/app/etc/local.xml 发现确实可以直接访问,这样magento的重要数据信息就直接曝露了,问题后果很严重…

考虑修改 app/etc/ 目录权限,但是会导致整站无法正常访问,检查 app 目录下的 .htaccess 文件 发现 Deny from all 但是为什么没有起作用呢。

再查 发现是跟 Apache 配置有关
Alias /mag16 “/data/www/mag16″

<Directory “/data/www/mag16″>
Order allow,deny
Allow from all
</Directory>

向Directory中添加
AllowOverride All

后 保存配置, service httpd restart

刷新后台,警告不再出现!
url访问 app/etc/local.xml 提示 403错误
You don’t have permission to access /mag16/app/etc/local.xml on this server

读书人网 >行业软件

热点推荐