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

时间: 11-12-26 栏目: Magento, PHP 作者: admin 评论: 0 点击: 144 次

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

如何解决。

原因在于magento使用 .htaccess 文件来控制各个目录的权限,因为虚拟主机设置的原因并没有设置.htaccess文件生效。导致文件结构和文件内容被暴露在用户访问之下,我们只需要在虚拟主机设置上做些修改就可以。

<Directory 您的网站路径文件夹地址>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</directory>

修改后,重启apache,刷新后台,警告消失。

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:等您坐沙发呢!

发表评论


------====== 本站公告 ======------
将站点从竹园下更换到wopus的美国主机。新站新气象。愿广大PHPer一生幸福,梦想成真!

为您推荐

读者排行

phpfuns 留下 1 个脚印很好学习一下 留下 1 个脚印PHP爱好者 留下 1 个脚印