I just switched from EA3/Apache 2.2 to EA4/Apache 2.4. Previously, I had a the following in my
/usr/local/apache/conf/includes/pre_main_global.conf file:
Then, I had the following in /usr/local/apache/conf/userdata/global-access_log.conf:
That was working great for several years. Now, I'm trying to set up the same thing with EA4, and I can't get it to log to the global log file. I added both of those directives to /etc/apache2/conf.d/includes/pre_main_2.conf, I added them to the bottom of my httpd.conf file, but nothing is working. I searched the forums and found all types of answers spanning several years. Is there currently a definitive way to do this?
/usr/local/apache/conf/includes/pre_main_global.conf file:
Code:
<IfModule mod_log_config.c>
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" mycustom
</IfModule>
Code:
CustomLog /var/log/httpd/global-apache-access_log mycustom