Apache logs
Hi everyoneI have a small number of virtual hosts on my dedicated Redhat 7.3 server and they all have their own access logs.
Apache httpd.conf comments say (about the main httpd access log):
The location and format of the access logfile (Common Logfile Format).
If you do not define any access logfiles within a <VirtualHost>
container, they will be logged here. Contrariwise, if you *do*
define per-<VirtualHost> access logfiles, transactions will be
logged therein and *not* in this file.
But I want to be able to save logs for each vhost, *and* have all requests logged to the main /var/log/httpd/access.log without adding another CustomLog entry to each <virtualhost>.
So to use the httpd comment as a description of what I want to do:
If you do not define any access logfiles within a <VirtualHost>
container, they will be logged here. Contrariwise, if you *do*
define per-<VirtualHost> access logfiles, transactions will be
logged therein and *also* in this file.
I won't go into why I need to do this, I just do.
I know this is a poor explanation of what I'm trying to do, but it's late and I'm tired! I hope it makes sense to someone.
Thanks
Matt (going to bed now...)