Nginx将日志写入错误的文件

时间:2014-01-06 13:18:05

标签: php symfony logging nginx

我在生产和开发环境中使用nginx。

我已正确配置vhost,每个虚拟主机将日志写入单独的文件。

但在我的情况下,我在生产日志中看到几行显示开发环境错误数据。

我已经重新检查配置,一切都很好。

这是来自nginx的已知错误。

修改

root @ web01:/ var / www / production#tail -n -20 /var/log/nginx/production-mobile-error.log

[06-Jan-2014 10:42:37 UTC] PHP Notice: Undefined variable: duplicateProductId in /var/www/production-srikanth-dev/Controller.php on line 619 

root @ web01:/ etc / nginx / sites-enabled#grep -ri'production-mobile-error'*

default.production-mobile: error_log /var/log/nginx/production-mobile-error.log error;
default.production-mobile: error_log /var/log/nginx/production-mobile-error.log error;

0 个答案:

没有答案