magento: Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside 解决方案
在linux(以UBUNTU, CENTOS为例)下安装完成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.
根据这种提示可以知道是由于服务器的配置文件有问题, 经过查看资料可以发现, 出现这种问题的原因如下:
<Files> sections are processed in the order they appear in the configuration file, after the <Directory> sections and .htaccess files are read, but before <Location> sections. Note that <Files> can be nested inside <Directory> sections to restrict the portion of the filesystem they apply to.
简单地说, <Files>的优先级排在<Directory>和.htaccess之后, 而在<Location>之前;
具体的解决方案如下:
在centos下, 找到如下的路径: /etc/httpd/conf/httpd.conf //注: 此为编译安装模式下, 如果是一键安装版本的, 可以找到对应的配置文件然后修改
找到<Directory "/var/www/html"> //这个是网站对应的根目录.
修改AllowOverride None 为 AllowOverride All
保存, 然后重启apache服务器:
service httpd restart
生效即可;
在UBUNTU下, 找到如下的路径: /etc/apache2/sites-available/default, 也要注意检查更新 /etc/apache2/sites-enabled/default确保相关内容更新
找到<Directory "/var/www/html"> //这个是网站对应的根目录.
修改AllowOverride None 为 AllowOverride All ////这个是网站对应的根目录.
保存, 然后重启apache服务器:
service apache2 restart
至此,
Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider.
这个问题解决. 该文章的解决方案借签这篇文章: http://blog.csdn.net/xinhaozheng/article/details/6311482
source: http://www.cnblogs.com/wwufengg/p/web-server-is-configured-incorrectly.html
最新文章
- iFrame 功能详解
- wamp下多域名配置问题
- pandas保存excel
- Axis2使war包发布为WebService
- Mongodb优化
- HTML5 Canvas实战之刮奖效果
- random模块使用
- Bone.io是一个轻量级的框架构建高性能实时单页HTML5应用程序
- Windows Phone开发(28):隔离存储B
- Doing Homework again
- Boost Coroutine2 - stackful coroutine简介
- bat检测文件大小并邮件报警
- Android读取网络图片到本地的简约的实现
- Win10 Store 还原
- shell脚本--权限分配
- 小朋友学C语言(2):安装Dev C++编译器
- C语言中使用的地址是真实的物理地址吗?
- 计蒜客 31451 - Ka Chang - [DFS序+树状数组][2018ICPC沈阳网络预赛J题]
- JavaScript函数学习总结(一)---函数定义
- hdu5072 容斥+枚举