Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 获得;“规则禁止的访问”;nginx服务器/app/etc/local.xml中的magento错误_Php_Magento_Nginx_Magento 1.9 - Fatal编程技术网

Php 获得;“规则禁止的访问”;nginx服务器/app/etc/local.xml中的magento错误

Php 获得;“规则禁止的访问”;nginx服务器/app/etc/local.xml中的magento错误,php,magento,nginx,magento-1.9,Php,Magento,Nginx,Magento 1.9,我的网站是建立在magento-1.9.0上的,我收到这个错误 2015/07/13 05:50:44 [error] 1371#0: *491517 access forbidden by rule, client: **.***.***.***, server: www.example.com, request: "POST /app/etc/local.xml HTTP/1.1", host: "www.example.com" 供您参考:IP地址始终是我自己的服务器。只有当我试图编辑或

我的网站是建立在magento-1.9.0上的,我收到这个错误

2015/07/13 05:50:44 [error] 1371#0: *491517 access forbidden by rule, client: **.***.***.***, server: www.example.com, request: "POST /app/etc/local.xml HTTP/1.1", host: "www.example.com"
供您参考:IP地址始终是我自己的服务器。只有当我试图编辑或更新“购物车价格规则”的任何项目时,才会发生这种情况。购物车价格规则有一个magento bug,我使用了这里提到的扩展。该扩展在我当地的环境中工作得很好,但在live中也不起作用。我猜这个错误阻止了扩展的完美工作。我的实时服务器正在nginx上运行

谁能帮帮我吗?提前谢谢。

这里有我的解决方案

总而言之,Magento试图通过HTTP访问app/etc/local.xml,但失败了,因此您将获得此错误日志。关键是,它应该失败!否则每个人都可以看到您的数据库凭据