环境: cetos 7.04
PHP环境:vestacp 一键安装包-nginx --apache
版本:Magento ver. 1.9.3.2
后台提示:
Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider…
Shuai
2017 年11 月 5 日 14:26
2
Magento提示这个,表明你的Magento配置有问题.
一般来说是权限问题,导致的安全问题。简单说,就是 别人可以访问到你的敏感配置文件 ,如 local.xml
由于你是Nginx + apache,首先你要检查你的Magento是否丢失了 .htaccess 文件。
如果丢失了,复制下面的文件到你的Magento根目录
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
############################################
## GoDaddy specific options
# Options -MultiViews
## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## if it still doesn't work, rename php.ini to php5.ini
############################################
## this line is specific for 1and1 hosting
This file has been truncated. show original
如果你的php不是Apache在执行是nginx的php-fpm,直接在nginx的conf配置文件里禁用访问就好.