在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

最新文章

  1. iFrame 功能详解
  2. wamp下多域名配置问题
  3. pandas保存excel
  4. Axis2使war包发布为WebService
  5. Mongodb优化
  6. HTML5 Canvas实战之刮奖效果
  7. random模块使用
  8. Bone.io是一个轻量级的框架构建高性能实时单页HTML5应用程序
  9. Windows Phone开发(28):隔离存储B
  10. Doing Homework again
  11. Boost Coroutine2 - stackful coroutine简介
  12. bat检测文件大小并邮件报警
  13. Android读取网络图片到本地的简约的实现
  14. Win10 Store 还原
  15. shell脚本--权限分配
  16. 小朋友学C语言(2):安装Dev C++编译器
  17. C语言中使用的地址是真实的物理地址吗?
  18. 计蒜客 31451 - Ka Chang - [DFS序+树状数组][2018ICPC沈阳网络预赛J题]
  19. JavaScript函数学习总结(一)---函数定义
  20. hdu5072 容斥+枚举

热门文章

  1. discuz debug下载地址
  2. [笔记]mosh使用笔记
  3. HBase1.2.6 javaapi查看rowkey 所在分区等信息
  4. Spring Boot+BootStrap fileInput 多图片上传
  5. MLlib1.6指南笔记
  6. Docker-docker镜像
  7. nginx windows版本 1024限制
  8. Java线程状态流转---线程
  9. 照着官网来安装openstack pike之keystone安装
  10. 20145331实验五 Java网络编程及安全