php icon indicating copy to clipboard operation
php copied to clipboard

Apache CustomLog overriding

Open jaredm4 opened this issue 11 years ago • 2 comments

So I need to use a custom CustomLog (hah) in Apache, but if I simply add a separate conf to be included with the CustomLog, it will cause duplicate log entries to be made (this is intended by Apache). So it looks like to solve this, I would need to remove the CustomLog directive from apaceh2.conf, or create a VirtualHost. Both of which I'd really like to avoid.

Any tips for working around this, or is this something we can change in the image? Currently I'm aiming to replace the apache2.conf with a modified copy but that means having to try and keep it updated from upstream.

jaredm4 avatar Apr 02 '15 15:04 jaredm4

Something like RUN sed -i 's/^CustomLog/#&/' /etc/apache2/apache2.conf would probably do the trick, right?

tianon avatar Apr 02 '15 17:04 tianon

Works enough. Thanks.

jaredm4 avatar Apr 03 '15 00:04 jaredm4