每个虚拟主机是error_log? [英] error_log per Virtual Host?

查看:208
本文介绍了每个虚拟主机是error_log?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行的Apache和PHP 5中一台Linux服务器,我们得到了与独立的日志文件,一切多个虚拟主机。我们似乎无法虚拟主机之间的单独的唯一的事情是PHP error_log中

On one Linux Server running Apache and PHP 5, we got multiple Virtual Hosts with separate logfiles and everything. The only thing we cannot seem to separate between virtual hosts is the php error_log.

覆盖在&LT此设置;地点>的的httpd.conf 似乎并没有做任何事情。

Overriding this setting in the <Location> of the httpd.conf does not seem to do anything.

难道我忽略的东西吗?有没有办法有单独的PHP error_logs 每个虚拟主机?

Did I overlook something? Is there a way to have separate php error_logs for each Virtual Host?

推荐答案

要设置的的Apache 的(不是PHP 的)登录,要做到这将是最简单的方法要做到:

To set the Apache (not the PHP) log, the easiest way to do this would be to do:

<VirtualHost IP:Port>
   # Stuff,
   # More Stuff,
   ErrorLog /path/where/you/want/the/error.log
</VirtualHost>

如果没有领先/它被假定为相对

If there is no leading "/" it is assumed to be relative.

Apache的错误日志页面

这篇关于每个虚拟主机是error_log?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆