This shows you the differences between two versions of the page.
— |
apache [2014/11/24 01:14] (current) 0.0.0.0 created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Apache ====== | ||
+ | ===== Logging via syslog ===== | ||
+ | Redirect the error messages to syslog, using the ErrorLog directive: | ||
+ | {{File|/ | ||
+ | #ErrorLog / | ||
+ | ErrorLog syslog: | ||
+ | |||
+ | LogLevel warn | ||
+ | </ | ||
+ | |||
+ | Apache can't handle sending the access logs to syslog natively, but we can pipe them to another process to do it for us - logger. | ||
+ | {{File|/ | ||
+ | - Comment out any existing CustomLog directives | ||
+ | CustomLog " | ||
+ | </ |