http://qs1969.pair.com?node_id=1216614


in reply to Re^4: how to resolve IP's in an HTTPd that doesn't resolve them?
in thread how to resolve IP's in an HTTPd that doesn't resolve them?

it's interesting that Apache doesn't have, or choose the use of a pipe

I expect Apache to simply open the log file in append mode. That should also work with a named pipe (a.k.a. FIFO). mknod /var/log/httpd/access.log p should be sufficient. Apache writes to that pipe, and a resolver program reads from the pipe.

But Apache can do even better, see piped logs:

CustomLog "|/usr/local/bin/name-resolver foo bar baz" common

The shell can also be invoked, that should allow creating a second pipe for a rotating logger:

CustomLog "|$/usr/local/bin/name-resolver foo bar | /usr/local/bin/mul +tilog t s1000000 /var/multilog/apache" common

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)