Acces to apache log.

Martin Schütte lists at mschuette.name
Thu Jun 19 17:21:09 UTC 2008


Albert Shih schrieb:
> How can I do that ? Make the acces to apache-log and tomcat-log (or anything log)
> to my users ? 

Maybe some unconventional approach: use syslog to write all logs to a 
user-accessible location. (If they have no shell account at all, then to 
a file on the Apache server they cann access by HTTPS.)

Example from httpd.conf:
CustomLog /var/log/apache/access.log combined
CustomLog "|/usr/bin/logger -p local1.info -t apache" complete

Then in syslog.conf on the apache server:
local1.info	/usr/local/www/userdata/access.log
and on backend-servers:
local1.info	@other-server

Oh, and make sure the syslogd is portfiltered so it is not accessible 
from the internat but only from your backend servers.

I do not know about Tomcat, but it should be able to log to syslog as well.

-- 
Martin


More information about the freebsd-jail mailing list