logging - Apache - Override default error_log with ErrorLog Directive in Vhost -


i have several vhosts setup, , have error logs go pre-determined locations. setup have works great, except when comment out error_log in httpd.conf keep seeing "starting httpd: (2)no such file or directory: httpd: not open error log file /etc/httpd/logs/error_log."

is possible turn off global error_log directive, , rely on vhost errorlog? or have run both?


edit 6.30.11

it appears error_log in httpd.conf relates actual httpd daemon, , not same virtual host errorlog. example, when restart httpd messages "[thu jun 30 17:18:56 2011] [notice] apache/2.2.3 (centos) configured -- resuming normal operations", , in vhost errorlog messages such "[wed jun 29 00:13:51 2011] [error] [client 173.255.252.120] file not exist:"

so seems have live setup like:

-rw-r--r-- 1 root webdev  329 jun 30 17:18 global_error.log     -rw-r--r-- 1 root webdev    0 jun 30 17:18 example.com.access.log -rw-r--r-- 1 root webdev    0 jun 30 17:18 example.com.error.log -rw-r--r-- 1 root webdev    0 jun 30 17:18 example.com.rewrite.log 

as mentioned in edit, not appear possible disable global_error log, makes sense now, didn't @ time.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -