1
0
Fork 0

initial commit

This commit is contained in:
Harald Hoyer 2020-05-19 18:20:18 +02:00
commit 429a176559
59 changed files with 4097 additions and 0 deletions

View file

@ -0,0 +1,5 @@
+++
transparent = true
sort_by = "date"
paginate_by = 5
+++

View file

@ -0,0 +1,17 @@
+++
title = "Redirecting apache access_log and error_log to the systemd journal"
date = 2013-11-07T10:03:38+00:00
+++
To redirect all apache messages to syslog, which will then appear in the systemd
journal modify your httpd.conf:
<!-- more -->
```properties
CustomLog "|/bin/logger -t access_log -p user.info" "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""``
ErrorLog syslog:user
```
Of course it would be much nicer, if apache actually could use the journal directly.
\[Edit\]: Apparently with apache 2.5, there will be a [mod\_journald](http://httpd.apache.org/docs/trunk/mod/mod_journald.html) :\-)